Can't use method "getString()" on interaction.options
Hello, I've been searching for some time now but I couldn't find why I can't use the "getString()" method on the options of my interaction. Please help ;-;
9 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 OPtype as ChatInputCommandInteraction
w8 maybe im just dumb
Ok it works
But why ?
CommandInteraction includes context menu commands too
Yea but why can't I just use CommandInteraction ?
because that includes context menus
The getString() is defined in there
context menus do not have options
Ohh okey I see
Thanks !