CodecademyCommunity / codecademy-discord-bot

Custom moderation bot for the official Codecademy Community Discord server.
https://codecademycommunity.github.io/
MIT License
11 stars 1 forks source link

Text input fields are not utilizing Discord min_length/max_length options #340

Closed mikejoh12 closed 2 years ago

mikejoh12 commented 2 years ago

Discord has added the ability to set min and max length for text inputs for the application-commands: https://discord.com/developers/docs/change-log#min-and-max-length-for-command-options

This has also been integrated into the latest version of Discord.js builders: https://discord.js.org/#/docs/builders/main/class/SlashCommandStringOption?scrollTo=max_length

Applying this to our code we should be able to delete some code related to checking and responding to text input of the wrong length. It's likely that builders will need to be updated in order for this to be available.