async function hasGuildPermissions(
  guild,
  member,
  permissions,
) {
  // First we need the role permission bits this member has
  const basePermissions = await calculateBasePermissions(guild, member);
  // Second use the validatePermissions function to check if the member has every permission
  return validatePermissions(basePermissions, permissions);
}
/** Checks if the given member has these permissions in the given guild */
Checks if the given member has these permissions in the given guild
Checks if the given member has these permissions in the given guild
async function hasGuildPermissions(
  guild,
  member,
  permissions,
) {
  const basePermissions = await calculateBasePermissions(guild, member);
  return validatePermissions(basePermissions, permissions);
}
async function hasGuildPermissions ( guild , member , permissions , ) { const basePermissions = await calculateBasePermissions ( guild , member ) ; return validatePermissions ( basePermissions , permissions ) ; }
Checks if the given member has these permissions in the given guild
Checks if the given member has these permissions in the given guild
// First we need the role permission bits this member has // Second use the validatePermissions function to check if the member has every permission