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
d.js docs
d.js docs3y ago
• 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.
monbrey
monbrey3y ago
user is a string here By getting the value, you have their snowflake / id
samp
sampOP3y ago
huh so how do i convert to user?
monbrey
monbrey3y ago
If you want a GuildMember to check roles on, use interaction.options.getMember('user')
samp
sampOP3y ago
aight ok eh, it still doesn't work? oh wait nvm I just did getMember('user').value @monbrey thanks for the help!
Want results from more Discord servers?
Add your server