hnng
This commit is contained in:
parent
09683bb30a
commit
0a9e688e1f
@ -40,7 +40,9 @@ class CommandHandler extends Observer {
|
||||
}
|
||||
|
||||
if(message.guild) {
|
||||
if(!message.member) await message.guild.members.fetch(message.author.id);
|
||||
if (!message.member) await message.guild.members.fetch(message.author.id).catch(() => {
|
||||
this.logger.warn(`Missing member for message in guild?\nGuild: ${message.guild.id} - ${message.author.tag} (${message.author.id})`);
|
||||
});
|
||||
}
|
||||
|
||||
const messageWrapper = new MessageWrapper(this.client, message);
|
||||
|
Loading…
Reference in New Issue
Block a user