interactions.options broke

Not sure if there is a better way to do this or not but after updating from v14.17.3 I'm now getting error TS2339: Property 'options' does not exist on type 'CommandInteraction<CacheType>'. and can't find the correct type, this is my interface for the execute parameters that contains the interaction obj
export interface SlashExecute {
/**
* The client instance
* @type {GBF}
*/
client: GBF;
/**
* The interaction object
* @type {CommandInteraction}
*/
interaction: CommandInteraction;
}
export interface SlashExecute {
/**
* The client instance
* @type {GBF}
*/
client: GBF;
/**
* The interaction object
* @type {CommandInteraction}
*/
interaction: CommandInteraction;
}
No description
4 Replies
d.js toolkit
d.js toolkit5mo 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
d.js docs
d.js docs5mo ago
:class: ChatInputCommandInteraction discord.js@14.21.0 Represents a command interaction.
treble/luna
treble/luna5mo ago
Type with that
.Bunnys
.BunnysOP5mo ago
yup worked thanks

Did you find this page helpful?