function validatePermissions(
  permissionBits,
  permissions,
) {
  if (BigInt(permissionBits) & 8n) return true;
  return permissions.every((permission) =>
    // Check if permission is in permissionBits
    BigInt(permissionBits) & BigInt(DiscordBitwisePermissionFlags[permission])
  );
}
/** Checks if the given permission bits are matching the given permissions. `ADMINISTRATOR` always returns `true` */
Checks if the given permission bits are matching the given permissions. `ADMINISTRATOR` always returns `true`
Checks if the given permission bits are matching the given permissions . ` ADMINISTRATOR ` always returns ` true `
function validatePermissions(
  permissionBits,
  permissions,
) {
  if (BigInt(permissionBits) & 8n) return true;
  return permissions.every((permission) =>
    BigInt(permissionBits) & BigInt(DiscordBitwisePermissionFlags[permission])
  );
}
function validatePermissions ( permissionBits , permissions , ) { if ( BigInt ( permissionBits ) & 8n ) return true ; return permissions . every ( ( permission ) => BigInt ( permissionBits ) & BigInt ( DiscordBitwisePermissionFlags [ permission ] ) ) ; }
Checks if the given permission bits are matching the given permissions.
Checks if the given permission bits are matching the given permissions .
// Check if permission is in permissionBits