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
d.js toolkit
d.js toolkit6mo ago
- 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 OP
treble/luna
treble/luna6mo ago
type as ChatInputCommandInteraction
Razmo
Razmo6mo ago
w8 maybe im just dumb Ok it works But why ?
treble/luna
treble/luna6mo ago
CommandInteraction includes context menu commands too
Razmo
Razmo6mo ago
Yea but why can't I just use CommandInteraction ?
treble/luna
treble/luna6mo ago
because that includes context menus
Razmo
Razmo6mo ago
The getString() is defined in there
treble/luna
treble/luna6mo ago
context menus do not have options
Razmo
Razmo6mo ago
Ohh okey I see Thanks !