member permissions to readable format

const memberPerms = member.permissions.toArray()
console.log(memberPerms)
const memberPerms = member.permissions.toArray()
console.log(memberPerms)
[
'CreateInstantInvite',
'KickMembers',
'ManageChannels',
'ManageGuild',
// ...
]
[
'CreateInstantInvite',
'KickMembers',
'ManageChannels',
'ManageGuild',
// ...
]
how do I get the permissions in a better readable way, like Kick Members, Manage Server, etc, is there some built-in way in discord.js or I'll have to make a custom one?
2 Replies
d.js toolkit
d.js toolkit17mo ago
- 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. - Issue solved? Press the button!
Shaurya
ShauryaOP17mo ago
^14.11.0 and v18.16.0
Want results from more Discord servers?
Add your server