From a4879f578da49cc741366018437b1b3da611e6cf Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sat, 18 Sep 2021 05:44:59 -0700 Subject: [PATCH] Added missing check --- src/discord/Help.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/discord/Help.ts b/src/discord/Help.ts index de20167..a61a216 100644 --- a/src/discord/Help.ts +++ b/src/discord/Help.ts @@ -59,6 +59,8 @@ export default class Help { const isSlashCommand = data instanceof CommandInteraction && data.isCommand(); const isMessage = data instanceof Message; + if(!isSlashCommand && !isMessage) return; + let sent = await sendMessageOrInteractionResponse(data, { embeds: [await EMBEDS.INFO(data)] }); if(isMessage)