Added missing check

This commit is contained in:
2021-09-18 05:45:52 -07:00
parent a4879f578d
commit 95675d5d13
+2
View File
@@ -38,6 +38,8 @@ export default class Invite {
const isSlashCommand = data instanceof CommandInteraction && data.isCommand();
const isMessage = data instanceof Message;
if(!isSlashCommand && !isMessage) return;
return await sendMessageOrInteractionResponse(data, { embeds:[EMBEDS.INVITE_INFO(data)] });
}
}