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
d.js toolkit
d.js toolkit17mo ago
- 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!
ShompiFlen
ShompiFlen17mo ago
the permission is called ModerateMembers
Ferklen
FerklenOP17mo ago
if(!message.member.hasPermission('ModerateMembers')) return message.channel.send('asd')
if(!message.member.hasPermission('ModerateMembers')) return message.channel.send('asd')
RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number.
ShompiFlen
ShompiFlen17mo ago
that code is not v14
Ferklen
FerklenOP17mo ago
i have v14
ShompiFlen
ShompiFlen17mo ago
member.permissions.has("ModerateMembers") then use the correct methods
Want results from more Discord servers?
Add your server