Error When trying to getString.
I'm in the process of updating djs 13 to 14.
- "discord.js": "^14.9.0",
- "@sapphire/framework": "^4.2.2",
I'm having issues when trying to
.getString()
from the interaction.options
.Solution:Jump to solution
I'm in the process of updating djs 13 to 14.
- "discord.js": "^14.9.0",
- "@sapphire/framework": "^4.2.2",
...
4 Replies
Make sure interaction is typed as a CommandInteraction and all your other dependencies are also up to date (only typescript is recommended to be 4.9.5 for now)
Will do thanks
Correction to myself, you can also type it as Command.ChatInputSomethingIForgotInteraction. It's an alias exported by us so you don't need to import it from discordjs.
Working now! 🙂
interaction: Command.ChatInputCommandInteraction