timeout perms
im trying to make a timeout command but idk what perms are required
if (!message.member.permissions.has('TIMEOUT_MEMBERS'))
doesn't exist, as i made a role with the permission to timeout members, then i used roleinfo and it says the role has no perms like if it didn't exist
6 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!the permission is called
ModerateMembers
RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number.
that code is not v14
i have v14
member.permissions.has("ModerateMembers")
then use the correct methods