3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-16 14:11:50 +00:00

fix(ContextMenus): correct ban modal custom id

This commit is contained in:
Obliie 2023-07-16 19:07:03 +01:00
parent cdcca8ccbb
commit 26bf9363f9
No known key found for this signature in database
GPG key ID: 9189A18F0D5B547E

View file

@ -77,7 +77,7 @@ export async function launchBanActionModal(
interaction: ButtonInteraction | ContextMenuCommandInteraction, interaction: ButtonInteraction | ContextMenuCommandInteraction,
target: string, target: string,
) { ) {
const modalId = `${ModMenuActionType.WARN}:${interaction.id}`; const modalId = `${ModMenuActionType.BAN}:${interaction.id}`;
const modal = new ModalBuilder().setCustomId(modalId).setTitle("Ban"); const modal = new ModalBuilder().setCustomId(modalId).setTitle("Ban");
const durationIn = new TextInputBuilder() const durationIn = new TextInputBuilder()
.setCustomId("duration") .setCustomId("duration")