From 04e0dfe6c1b5354cb9c48f8ea698d32c92dc37db Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 26 Aug 2022 14:29:11 -0400 Subject: [PATCH] add Message#channel? check before calling .createMessage() --- src/commands/score.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/score.ts b/src/commands/score.ts index af21a5d..14d0ae7 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -199,6 +199,6 @@ export default class Score extends Command { await modlogsMessage.delete(); return message.channel.createMessage('***===END ADDITIONAL INFORMATION===***'); } - return message.channel.createMessage({ embed }); + return message.channel?.createMessage({ embed }); } }