AddUserOption

For addStringOption how can I limit the passed in characters from user?
4 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
phoenixx
phoenixxOP2y ago
how to limit the amount of characters entered, I want it to only input a maximum 7 characters from the user
d.js docs
d.js docs2y ago
method SlashCommandStringOption#setMaxLength() Sets the maximum length of this string option.
phoenixx
phoenixxOP2y ago
Thank you, works <a:thumbs_up:1012082966350004255>
Want results from more Discord servers?
Add your server