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 toolkit14mo 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 User14mo ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARD14mo ago
yeah i found that but b, d... and some other characters are also not allowed 🤔
chewie 🌈
chewie 🌈14mo ago
They are allowed
MEtooHARD
MEtooHARD14mo ago
😦
MEtooHARD
MEtooHARD14mo ago
chewie 🌈
chewie 🌈14mo ago
Otherwise having a ban command would be interesting Can you copy paste the regex here
MEtooHARD
MEtooHARD14mo ago
/^[\p{Ll}\p{Lm}\p{Lo}\p{N}\p{sc=Devanagari}\p{sc=Thai}_-]+$/u
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARD14mo ago
😵‍💫
Unknown User
Unknown User14mo ago
Message Not Public
Sign In & Join Server To View
MEtooHARD
MEtooHARD14mo 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