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