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