Slash Command, setName() doesn't allow many of characters

discord.js ver. 14.11.0 I'm using slash command and when it went to StringOption's setName(), I found that some specific characters are not allowed. (I used regex101 to test the regex provided by the error)
12 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARDOP2y ago
yeah i found that but b, d... and some other characters are also not allowed 🤔
chewie
chewie2y ago
They are allowed
MEtooHARD
MEtooHARDOP2y ago
😦
MEtooHARD
MEtooHARDOP2y ago
chewie
chewie2y ago
Otherwise having a ban command would be interesting Can you copy paste the regex here
MEtooHARD
MEtooHARDOP2y ago
/^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARDOP2y ago
😵‍💫
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARDOP2y ago
tf it worked i just updated rest and builders from the latest ver. to the latest ver. idk anyway it works normally now no, discord.js occurred that error, too anyway it's fine now
Want results from more Discord servers?
Add your server