From 26bf9363f91222ef094f75ef2d9f3d4dfe16705b Mon Sep 17 00:00:00 2001 From: Obliie Date: Sun, 16 Jul 2023 19:07:03 +0100 Subject: [PATCH] fix(ContextMenus): correct ban modal custom id --- backend/src/plugins/ContextMenus/actions/ban.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/plugins/ContextMenus/actions/ban.ts b/backend/src/plugins/ContextMenus/actions/ban.ts index 0a61c57f..259622a6 100644 --- a/backend/src/plugins/ContextMenus/actions/ban.ts +++ b/backend/src/plugins/ContextMenus/actions/ban.ts @@ -77,7 +77,7 @@ export async function launchBanActionModal( interaction: ButtonInteraction | ContextMenuCommandInteraction, target: string, ) { - const modalId = `${ModMenuActionType.WARN}:${interaction.id}`; + const modalId = `${ModMenuActionType.BAN}:${interaction.id}`; const modal = new ModalBuilder().setCustomId(modalId).setTitle("Ban"); const durationIn = new TextInputBuilder() .setCustomId("duration")