TS + D.JS Error - unable to get the options

Hi, I'm working with a CommandInteraction here & am trying to get the option values. I'm working in a Typescript bot and currently have this code written, but I get the following error 🤔 I've tried things like making the properties optional to no avail. It just doesn't think it exists.
6 Replies
d.js toolkit
d.js toolkit•15mo 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!
wizard
wizard•15mo ago
typeguard it with isChatInputCommandInteraction() and make sure your TS version is updated
Noah
NoahOP•15mo ago
ts version is 100% updated, installed it recently. it is typeguarded in the handler.
wizard
wizard•15mo ago
do you mind showing it
Noah
NoahOP•15mo ago
Noah
NoahOP•15mo ago
worked when I was using it in JS, migrating to TS atm Doing that, still getting an error now Lemme check rq what it was Alright fixed the issue with options was another thing where i typed string wrong now haha Cheers thank you
Want results from more Discord servers?
Add your server