forked from Galactic/galactic-bot
bugfix
This commit is contained in:
parent
d13452fe3f
commit
070cc46fca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user