From 234295a3f0484deecbe22b9581dadc999251ab9d Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 19 Mar 2023 14:30:28 +0100 Subject: [PATCH] Adding bugfix for unknow reations --- events/modals/denyreasonbox.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/events/modals/denyreasonbox.js b/events/modals/denyreasonbox.js index 32444e9..37a298c 100644 --- a/events/modals/denyreasonbox.js +++ b/events/modals/denyreasonbox.js @@ -10,6 +10,8 @@ module.exports = { async execute(interaction) { + if (interaction.type === InteractionType.ApplicationCommand) return; + interaction.deferReply(); if (interaction.type !== InteractionType.ModalSubmit) return;