This commit is contained in:
Erik 2022-08-29 12:20:21 +03:00
parent 09683bb30a
commit 0a9e688e1f
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

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