From 0a9e688e1fa260b4304dd5be28ddd7ed90485605 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Mon, 29 Aug 2022 12:20:21 +0300 Subject: [PATCH] hnng --- src/structure/components/observers/CommandHandler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/structure/components/observers/CommandHandler.js b/src/structure/components/observers/CommandHandler.js index a20a495..a739608 100644 --- a/src/structure/components/observers/CommandHandler.js +++ b/src/structure/components/observers/CommandHandler.js @@ -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);