Closed mikejoh12 closed 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.
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.