reciple 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -83,6 +83,8 @@ class RecipleClient extends discord_js_1.Client {
|
|
|
83
83
|
const parseCommand = (0, fallout_utility_1.getCommand)(message.content, ((_b = this.config) === null || _b === void 0 ? void 0 : _b.prefix) || '!', ((_c = this.config) === null || _c === void 0 ? void 0 : _c.commands.messageCommand.commandArgumentSeparator) || ' ');
|
|
84
84
|
if (parseCommand && parseCommand.command) {
|
|
85
85
|
const command = this.commands.MESSAGE_COMMANDS[parseCommand.command];
|
|
86
|
+
if (!command)
|
|
87
|
+
return this;
|
|
86
88
|
if ((0, commandPermissions_1.commandPermissions)(command.name, ((_d = message.member) === null || _d === void 0 ? void 0 : _d.permissions) || null, (_e = this.config) === null || _e === void 0 ? void 0 : _e.permissions.messageCommands)) {
|
|
87
89
|
if (!command.allowExecuteInDM && message.channel.type === 'DM' || !command.allowExecuteByBots && (message.author.bot || message.author.system) || (0, isIgnoredChannel_1.isIgnoredChannel)(message.channelId, (_f = this.config) === null || _f === void 0 ? void 0 : _f.ignoredChannels))
|
|
88
90
|
return this;
|
|
@@ -115,6 +117,8 @@ class RecipleClient extends discord_js_1.Client {
|
|
|
115
117
|
if ((0, commandPermissions_1.commandPermissions)(command.name, interaction.memberPermissions, (_b = this.config) === null || _b === void 0 ? void 0 : _b.permissions.interactionCommands)) {
|
|
116
118
|
if (!command.allowExecuteInDM && interaction.member === null || (0, isIgnoredChannel_1.isIgnoredChannel)(interaction.channelId, (_c = this.config) === null || _c === void 0 ? void 0 : _c.ignoredChannels))
|
|
117
119
|
return this;
|
|
120
|
+
if (!command)
|
|
121
|
+
return this;
|
|
118
122
|
const options = {
|
|
119
123
|
interaction: interaction,
|
|
120
124
|
command: command,
|