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 toolkit15mo 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
ShompiFlen15mo ago
the permission is called ModerateMembers
Ferklen
FerklenOP15mo 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
ShompiFlen15mo ago
that code is not v14
Ferklen
FerklenOP15mo ago
i have v14
ShompiFlen
ShompiFlen15mo ago
member.permissions.has("ModerateMembers") then use the correct methods
Want results from more Discord servers?
Add your server