From 4a6f49600996f53be2ef28b5b7e602382cbab4ff Mon Sep 17 00:00:00 2001 From: GRZ4NA Date: Mon, 6 Sep 2021 23:05:23 +0200 Subject: [PATCH] Fixed an issue with context menu interactions not firing --- src/structures/Bot.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/Bot.ts b/src/structures/Bot.ts index 138a59d..08f65f7 100644 --- a/src/structures/Bot.ts +++ b/src/structures/Bot.ts @@ -199,7 +199,7 @@ export class Bot extends EventEmitter { this.client.on("interactionCreate", async (i) => { let cmd: CommandMessageStructure | null = null; try { - if (!i.isCommand()) return; + if (!i.isCommand() && !i.isContextMenu()) return; cmd = this.commands.fetch(i); if (cmd) { this.emit("COMMAND", i, cmd);