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 toolkit12mo 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/luna12mo ago
type as ChatInputCommandInteraction
Razmo
RazmoOP12mo ago
w8 maybe im just dumb Ok it works But why ?
treble/luna
treble/luna12mo ago
CommandInteraction includes context menu commands too
Razmo
RazmoOP12mo ago
Yea but why can't I just use CommandInteraction ?
treble/luna
treble/luna12mo ago
because that includes context menus
Razmo
RazmoOP12mo ago
The getString() is defined in there
treble/luna
treble/luna12mo ago
context menus do not have options
Razmo
RazmoOP12mo ago
Ohh okey I see Thanks !
Want results from more Discord servers?
Add your server