Permission bits to Human Readable text

Is it possible to get Human readable text from permission bits? I'm trying to make a help command which extracts command names via container stores & when user selects the command name, the help command then extracts detailedDescription of selected command to show. A nice addition would be to show the permissions required.
Solution:
const { PermissionsBitField } = await import('discord.js');

new PermissionsBitField(the bits here).toArray()
const { PermissionsBitField } = await import('discord.js');

new PermissionsBitField(the bits here).toArray()
...
Jump to solution
3 Replies
Solution
Favna
Favna13mo ago
const { PermissionsBitField } = await import('discord.js');

new PermissionsBitField(the bits here).toArray()
const { PermissionsBitField } = await import('discord.js');

new PermissionsBitField(the bits here).toArray()
Favna
Favna13mo ago
No description
MRDGH2821
MRDGH2821OP13mo ago
Thanks for the solution! Works as expected
Want results from more Discord servers?
Add your server