forked from Galactic/galactic-bot
fetch guild and user settings
This commit is contained in:
parent
b68d8daf4a
commit
d7a7e0cedc
@ -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;
|
||||
|
||||
if(message.guild && !message.member) {
|
||||
await message.guild.members.fetch(message.author.id);
|
||||
await message.author.settings();
|
||||
|
||||
if (message.guild) {
|
||||
await message.guild.settings();
|
||||
if (!message.member) await message.guild.members.fetch(message.author.id);
|
||||
}
|
||||
|
||||
const content = message.content;
|
||||
|
Loading…
Reference in New Issue
Block a user