How do I check if someone if a user is an admin?
How do I check if someone if a user is an admin?
15 Replies
- 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!
- ✅
Marked as resolved by OP![property](https://cdn.discordapp.com/emojis/874569322742308864.png)
the manager has a .has property, which takes a PermissionResolvable
whenever I use .has it says the function doesn't exist. Do I need to import something?
show how you defined member
let member = interaction.guild.members.cache.get(interaction.user.id);
just use interaction.member
it says interaction.member.has is not a function
thats indeed not a function
.
?
!
a GuildMember has a permissions property
where you need to call .has on
where in the docs do I find this?
...
And I appreciate the help btw
do I jus click that link or smthn
yes