diff --git a/structure/client/components/observers/CommandHandler.js b/structure/client/components/observers/CommandHandler.js index d9418b2..b46b343 100644 --- a/structure/client/components/observers/CommandHandler.js +++ b/structure/client/components/observers/CommandHandler.js @@ -31,10 +31,13 @@ class CommandHandler extends Observer { if(!this.client._built || message.webhookID || message.author.bot - || (message.guild && !message.guild.available)) return undefined; + || (message.guild && (!message.guild.available || message.guild.banned))) return undefined; + + await message.author.settings(); - if(message.guild && !message.member) { - await message.guild.members.fetch(message.author.id); + if (message.guild) { + await message.guild.settings(); + if (!message.member) await message.guild.members.fetch(message.author.id); } const content = message.content;