diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index 4ae358e..673e3aa 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -34,8 +34,10 @@ class CommandHandler extends Observer { const userWrapper = await this.client.getUserWrapper(message.author.id); - const settings = await message.guildWrapper.settings(); - if (!settings.textcommands.enabled && !userWrapper.developer) return; + if (message.guild) { + const settings = await message.guildWrapper.settings(); + if (!settings.textcommands.enabled && !userWrapper.developer) return; + } if(message.guild) { if(!message.member) await message.guild.members.fetch(message.author.id);