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 toolkit16mo 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
daneOP16mo ago
[email protected] on node v18.3.0 no difference error occurs on ts compile
dane
daneOP16mo ago
EpicCarlito
EpicCarlito16mo ago
I am having the same error with getMember and getUser even when I have set interaction as ChatInputCommandInteraction
dane
daneOP16mo ago
dane
daneOP16mo ago
yes i saved the file
EpicCarlito
EpicCarlito16mo ago
Source Code:
dane
daneOP16mo 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
EpicCarlito16mo ago
My code still complies however it still shows as error on getUser and getMember:
Want results from more Discord servers?
Add your server