fetch guild and user settings

This commit is contained in:
Erik 2020-04-19 22:53:59 +03:00
parent b68d8daf4a
commit d7a7e0cedc

View File

@ -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;