Set max length of confession box to 2000

This commit is contained in:
powermaker450 2024-10-17 16:23:30 -04:00
parent 645a8b2ae7
commit ae27c7d24e
2 changed files with 2 additions and 1 deletions

View file

@ -41,6 +41,7 @@ export const data = new SlashCommandBuilder()
.setName("message") .setName("message")
.setRequired(true) .setRequired(true)
.setDescription("What you want to confess") .setDescription("What you want to confess")
.setMaxLength(2000)
) )
.addStringOption(option => .addStringOption(option =>
option option

View file

@ -165,7 +165,7 @@ BotClient.on(Events.InteractionCreate, async interaction => {
isAttachment(attachment) && adminConfessionEmbed.setImage(attachment); isAttachment(attachment) && adminConfessionEmbed.setImage(attachment);
const submitConfessionButton = new ButtonBuilder() const submitConfessionButton = new ButtonBuilder()
.setCustomId("submitConfession") .setCustomId("requestSubmit")
.setLabel("Submit a Confession") .setLabel("Submit a Confession")
.setStyle(ButtonStyle.Primary); .setStyle(ButtonStyle.Primary);