Added missing check

This commit is contained in:
2021-09-18 05:44:59 -07:00
parent aeef5a19e0
commit a4879f578d
+2
View File
@@ -59,6 +59,8 @@ export default class Help {
const isSlashCommand = data instanceof CommandInteraction && data.isCommand(); const isSlashCommand = data instanceof CommandInteraction && data.isCommand();
const isMessage = data instanceof Message; const isMessage = data instanceof Message;
if(!isSlashCommand && !isMessage) return;
let sent = await sendMessageOrInteractionResponse(data, { embeds: [await EMBEDS.INFO(data)] }); let sent = await sendMessageOrInteractionResponse(data, { embeds: [await EMBEDS.INFO(data)] });
if(isMessage) if(isMessage)