How to filter permissions based to the usage?

I want to filter permissions based on the usage. Example: Permission.FLAGS has all the permissions for a guild. but if I am trying to set a channel override how can I only get permissions applicable to that channel? So like ADMINSTRATOR don't make sense for channel override.
3 Replies
d.js docs
d.js docs2y 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.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
d.js docs
d.js docs2y ago
property TextChannel#permissionOverwrites A manager of permission overwrites that belong to this channel