From ae27c7d24ec4cef7879d6b7c11d2ad8ad07a2f6d Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Thu, 17 Oct 2024 16:23:30 -0400 Subject: [PATCH] Set max length of confession box to 2000 --- src/commands/confess.ts | 1 + src/main.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/confess.ts b/src/commands/confess.ts index c37ebe7..769b04a 100644 --- a/src/commands/confess.ts +++ b/src/commands/confess.ts @@ -41,6 +41,7 @@ export const data = new SlashCommandBuilder() .setName("message") .setRequired(true) .setDescription("What you want to confess") + .setMaxLength(2000) ) .addStringOption(option => option diff --git a/src/main.ts b/src/main.ts index 23a753a..611e1c3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -165,7 +165,7 @@ BotClient.on(Events.InteractionCreate, async interaction => { isAttachment(attachment) && adminConfessionEmbed.setImage(attachment); const submitConfessionButton = new ButtonBuilder() - .setCustomId("submitConfession") + .setCustomId("requestSubmit") .setLabel("Submit a Confession") .setStyle(ButtonStyle.Primary);