Property 'getMember' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, ...
Property 'getMember' does not exist on type 'Omit<CommandInteractionOptionResolver<CacheType>, "getMessage" | "getFocused" | "getMentionable" | "getRole" | "getAttachment" | ... 6 more ... | "getSubcommand">'.
9 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![email protected] on node v18.3.0
no difference
error occurs on ts compile
I am having the same error with getMember and getUser even when I have set interaction as ChatInputCommandInteraction
yes i saved the file
Source Code:
thanks for the advice kinda rely on tsnode for tsconfigpaths and i dont wnat to change it now so i just added transpileonly param, works now
My code still complies however it still shows as error on getUser and getMember: