diff --git a/structure/client/components/inhibitors/Disabled.js b/structure/client/components/inhibitors/Disabled.js index 0b876b7..ff1eaf3 100644 --- a/structure/client/components/inhibitors/Disabled.js +++ b/structure/client/components/inhibitors/Disabled.js @@ -17,7 +17,7 @@ class Disabled extends Inhibitor { execute(message, command) { if(command.disabled) return super._fail({ modifier: message.format('I_DISABLED_ERRORMODIFIER', { globally: true }, true) }); - if(message.guild._settings.disabledCommands.includes(command.resolveable)) { + if(message.guild && message.guild._settings.disabledCommands.includes(command.resolveable)) { return super._fail({ modifier: message.format('I_DISABLED_ERRORMODIFIER', { globally: false }, true) }); } diff --git a/structure/extensions/Message.js b/structure/extensions/Message.js index e26f7b0..8378d5f 100644 --- a/structure/extensions/Message.js +++ b/structure/extensions/Message.js @@ -55,7 +55,7 @@ const Message = Structures.extend('Message', (Message) => { async resolve() { - if(this.guild.debug) { + if(this.guild && this.guild.debug) { this.guild._debugLog(`Command [${this.command.moduleResolveable}] execution by ${this.author.tag}. Parameters: ${this.parameters.join(', ')} || Arguments: ${Object.values(this.arguments).map((arg) => `${arg.name}:${arg.value}`)}`); }