function calculateBits(
  permissions,
) {
  return permissions.reduce((bits, perm) => {
    bits |= BigInt(DiscordBitwisePermissionFlags[perm]);
    return bits;
  }, 0n).toString();
}
/** This function converts an array of permissions into the bitwise string. */
This function converts an array of permissions into the bitwise string.
This function converts an array of permissions into the bitwise string .
function calculateBits(
  permissions,
) {
  return permissions.reduce((bits, perm) => {
    bits |= BigInt(DiscordBitwisePermissionFlags[perm]);
    return bits;
  }, 0n).toString();
}
function calculateBits ( permissions , ) { return permissions . reduce ( ( bits , perm ) => { bits |= BigInt ( DiscordBitwisePermissionFlags [ perm ] ) ; return bits ; } , 0n ) . toString ( ) ; }
This function converts an array of permissions into the bitwise string.
This function converts an array of permissions into the bitwise string .