Option values
So I have this option with choices
And to get the value i use
I was wondering instead of the choice value is it possible to get the choice name ? I cannot seem to figure out how..
7 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!
- ✅
Marked as resolved by OPno
just make your name the same as your value if you want that
I tried using .name
and it returns server-ban
I want it to say Server Ban
then make your value that
instead of lowercase
also
use options.getString()
not get()?.value
name does not work
because you cannot access an option name
as i told you
Ta