"ValidationError: Expected a string primitive" when adding options to a StringSelectMenuBuilder
Hey, got a question: I want to add a StringSelectMenuBuilder, and for the options I have this:
choices
is an Array[]
but when I do this later on in my code, I get the following error:
ValidationError: Expected a string primitive
when I log my optionsSSM
in the console, I get this (which in my eyes is a valid format to the StringSelectMenuBuilder
class):
3 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 OPstring select menu options have labels, not names
bruh I have the docs open and I constantly read "name" instead of "label"
that was an easy fix
thanks for helping me out lol