I'm trying to work on perms for my bot.
It is getting stuck in the for loop. I have administrator perms so I should be able to run a command but it is saying I don't have perms.
code:
I don't understand. Also, should I continue using
Discord.PermissionsBitFields.Flags
or are there numbers I could use instead? Cause I believe djs is moving away from hadcoding strings like this?2 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.
Tag suggestion for @dudethatserin:
Checking for things to not be equal in JavaScript:
• Comparison operators in JavaScript: learn moreI am trying to do this both ways. Regardless of the name, it should be modPerms but it still doesn’t work
It doesn’t have anything to do with this either
Good to know
Oh fudge. I didn’t even see that
Myb I thought it was just the modRoles name you were referring to
That explains it lol