From b66daa6f118cf26c07dc300e099e7b1fd68e9a7f Mon Sep 17 00:00:00 2001 From: Shadow Date: Wed, 3 Jul 2024 13:20:41 +0000 Subject: [PATCH] Added char limit to talk-to-mods feedback popup * fix(techHelp): added 2000 char limit for entries & warn user of limit * fix(lint): missing semicolon k * fix(techHelp): switched to discord min/max length functions, removed warning --------- Co-authored-by: LunaUrsa <1836049+LunaUrsa@users.noreply.github.com> --- src/discord/utils/techHelp.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/discord/utils/techHelp.ts b/src/discord/utils/techHelp.ts index 8806b93f6..a9835743e 100644 --- a/src/discord/utils/techHelp.ts +++ b/src/discord/utils/techHelp.ts @@ -77,7 +77,9 @@ export async function techHelpClick(interaction:ButtonInteraction) { .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 })