Socket
Socket
Sign inDemoInstall

xernerx

Package Overview
Dependencies
Maintainers
1
Versions
195
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xernerx - npm Package Compare versions

Comparing version 4.15.1 to 4.15.2

2

dist/utils/InteractionUtil.d.ts

@@ -23,4 +23,4 @@ /** @format */

commands(): import("@discordjs/collection").Collection<string, import("../main.js").XernerxSlashCommand> | import("@discordjs/collection").Collection<string, import("../main.js").XernerxContextCommand>;
permissionCheck(type: 'user' | 'client', permissions: Array<PermissionNames>): boolean;
permissionCheck(type: 'user' | 'client', permissions: Array<PermissionNames>, emit?: boolean): boolean | string[];
}
export {};

@@ -128,3 +128,3 @@ /** @format */

}
permissionCheck(type, permissions) {
permissionCheck(type, permissions, emit = true) {
console.log(type);

@@ -141,4 +141,3 @@ const missing = [];

const command = this.commands().toJSON().find((cmd) => cmd.name == this.parsed.alias?.split(/ +/)[0]);
console.log(type);
if (missing.length) {
if (missing.length && emit) {
this.client.emit(`commandBlock`, this.interaction, {

@@ -152,2 +151,4 @@ reason: `missing${Style.pascalCase(type)}Permissions`,

}
else if (missing.length && !emit)
return missing;
else

@@ -154,0 +155,0 @@ return true;

@@ -24,4 +24,4 @@ /** @format */

commands(): import("@discordjs/collection").Collection<string, import("../main.js").XernerxMessageCommand>;
permissionCheck(type: 'user' | 'client', permissions: Array<PermissionNames>): boolean;
permissionCheck(type: 'user' | 'client', permissions: Array<PermissionNames>, emit?: boolean): boolean | string[];
}
export {};

@@ -142,3 +142,3 @@ /** @format */

}
permissionCheck(type, permissions) {
permissionCheck(type, permissions, emit = true) {
console.log(type);

@@ -155,4 +155,3 @@ const missing = [];

const command = this.commands().find((cmd) => cmd.name == this.parsed.alias || cmd.aliases?.includes(this.parsed.alias));
console.log(type);
if (missing.length) {
if (missing.length && emit) {
this.client.emit(`commandBlock`, this.message, {

@@ -166,2 +165,4 @@ reason: `missing${Style.pascalCase(type)}Permissions`,

}
else if (missing.length && !emit)
return missing;
else

@@ -168,0 +169,0 @@ return true;

{
"name": "xernerx",
"version": "4.15.1",
"version": "4.15.2",
"description": "A bot framework for discord.js.",

@@ -5,0 +5,0 @@ "main": "dist/main.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc