function missingPermissions(
  permissionBits,
  permissions,
) {
  if (BigInt(permissionBits) & 8n) return [];
  return permissions.filter((permission) =>
    !(BigInt(permissionBits) &
      BigInt(DiscordBitwisePermissionFlags[permission]))
  );
}
/** Returns the permissions that are not in the given permissionBits */
Returns the permissions that are not in the given permissionBits
Returns the permissions that are not in the given permissionBits
function missingPermissions(
  permissionBits,
  permissions,
) {
  if (BigInt(permissionBits) & 8n) return [];
  return permissions.filter((permission) =>
    !(BigInt(permissionBits) &
      BigInt(DiscordBitwisePermissionFlags[permission]))
  );
}
function missingPermissions ( permissionBits , permissions , ) { if ( BigInt ( permissionBits ) & 8n ) return [ ] ; return permissions . filter ( ( permission ) => ! ( BigInt ( permissionBits ) & BigInt ( DiscordBitwisePermissionFlags [ permission ] ) ) ) ; }
Returns the permissions that are not in the given permissionBits
Returns the permissions that are not in the given permissionBits