diff --git a/src/discord/utils/techHelp.ts b/src/discord/utils/techHelp.ts index af5d1c529..a9835743e 100644 --- a/src/discord/utils/techHelp.ts +++ b/src/discord/utils/techHelp.ts @@ -73,11 +73,13 @@ export async function techHelpClick(interaction:ButtonInteraction) { .setCustomId(`techHelpSubmit~${interaction.id}`) .setTitle(`${interaction.guild.name} Feedback`) .addComponents(new ActionRowBuilder().addComponents(new TextInputBuilder() - .setLabel('What is your issue? Be super detailed! (2000 character limit)') + .setLabel('What is your issue? Be super detailed!') .setStyle(TextInputStyle.Paragraph) .setPlaceholder(placeholder) .setCustomId(`${issueType}IssueInput`) - .setRequired(true)))); + .setRequired(true) + .setMinLength(10) + .setMaxLength(2000)))); const filter = (i:ModalSubmitInteraction) => i.customId.includes('techHelpSubmit'); interaction.awaitModalSubmit({ filter, time: 0 }) @@ -94,14 +96,6 @@ export async function techHelpClick(interaction:ButtonInteraction) { const modalInput = i.fields.getTextInputValue(`${issueType}IssueInput`); // log.debug(F, `modalInput: ${modalInput}!`); - if (modalInput.length > 2000) { - await interaction.reply({ - content: 'Your feedback must be 2000 characters or less!', - ephemeral: true, - }); - return; - } - // // Get the actor const actor = i.user;