`ApplicationCommandType` TypeError
I'm attempting to create a context menu command:
I'm getting the following TypeError:
I've tried importing the enum from
discord-api-types/v10
instead but it throws the same error, not sure what I'm doing wrong!Solution:Jump to solution
It's an issue with the types from discord.js, here's their FAQ that mentions this and the solution:
https://discord.com/channels/222078108977594368/1320493963467296929...
6 Replies
Solution
It's an issue with the types from discord.js, here's their FAQ that mentions this and the solution:
https://discord.com/channels/222078108977594368/1320493963467296929
Still getting the same error after setting
overrides
and running npm i
(also tried deleting node_modules
)
Idk, but I'd recommend asking in discord.js support, they probably would know what else might be up with it since that didn't fix it for you. But have you also restarted the tsserver? Sometimes it likes to be a pain in the butt
Yes I did :/ I'll check it out with them, thank you for the help! When/if I find the solution I'll post it here
Awesome
I'm using npm workspaces and I had placed the
overrides
key in the workspace's package.json
but it needed to be in my "root" package's package.json
instead, that fixed it, thank you again for the help!