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">'.
const detailUser = ((interaction.options.getMember("user")));
const detailUser = ((interaction.options.getMember("user")));
9 Replies
d.js toolkit
d.js toolkit11mo 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!
dane
dane11mo ago
discord.js@14.12.1 on node v18.3.0 no difference error occurs on ts compile
dane
dane11mo ago
EpicCarlito
EpicCarlito11mo ago
I am having the same error with getMember and getUser even when I have set interaction as ChatInputCommandInteraction
dane
dane11mo ago
dane
dane11mo ago
yes i saved the file
EpicCarlito
EpicCarlito11mo ago
Source Code:
dane
dane11mo ago
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
EpicCarlito
EpicCarlito11mo ago
My code still complies however it still shows as error on getUser and getMember: