Role checking user does not work
Guys, for some reason this code cannot run(this is the tag command). Checking if the user is "IT" works, but for some reason, checking if the target is a Robot doesn't. I will post the error too.
5 Replies
• What's your exact discord.js
npm list discord.js
and node node -v
version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.user
is a string here
By getting the value, you have their snowflake / idhuh
so how do i convert to user?
If you want a GuildMember to check roles on, use
interaction.options.getMember('user')
aight ok
eh, it still doesn't work?
oh wait nvm
I just did getMember('user').value
@monbrey thanks for the help!