Skip to content

Commit

Permalink
fix: resolve BigInt permissions into human readable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed May 23, 2023
1 parent 5edb477 commit d1209c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/handlers/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,7 @@ const generateCommandInfoEmbed = (clientCmd, interaction) => {

// Utility function for displaying our permission requirements
const getPermOutput = (permArr) => {
permArr = resolvePermissionArray(permArr);
return permArr.length >= 1
? permArr
.map((perm) => `${ channel.permissionsFor(member.user.id).has(PermissionsBitField.Flags[perm])
Expand Down

0 comments on commit d1209c3

Please sign in to comment.