Property 'getUser' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMes
hey! I have error in TypeScript and Discord.js that says "Property 'getUser' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused">'", and it's working fine on another computer. It seems like the issue is not related to the version of Node.js, TypeScript, or Discord.js.
6 Replies
- 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 OPyes
and what is your ts version
The interaction is fine, but the options only gives me get subcommands, groups and not getUser or channel.
a minute
5.2.2
I didn't realize, I'll try to update
new error XD
That new error appears and the previous one continues
loading
`
yes
A friend tried the same code on his PC and it worked
It's my machine
Ok
19.9
I have tried and it is not a question of versions, a friend tried with my code, same version of djs, node, tes
And it worked for him
No
show 4.7.3
My vscode is an old version
Since my pc is w7
Well, as such the PC belongs to my sister and she doesn't want to update it to w10, there is no way for that version to use typescript 5.2.2?
Oh I saw how
Thank you, the problem is now solved 😊