async function hasChannelPermissions(
  channel,
  member,
  permissions,
) {
  // First we need the overwrite bits this member has
  const channelOverwrites = await calculateChannelOverwrites(channel, member);
  // Second use the validatePermissions function to check if the member has every permission
  return validatePermissions(channelOverwrites, permissions);
}
/** Checks if the given member has these permissions for the given channel */
Checks if the given member has these permissions for the given channel
Checks if the given member has these permissions for the given channel
async function hasChannelPermissions(
  channel,
  member,
  permissions,
) {
  const channelOverwrites = await calculateChannelOverwrites(channel, member);
  return validatePermissions(channelOverwrites, permissions);
}
async function hasChannelPermissions ( channel , member , permissions , ) { const channelOverwrites = await calculateChannelOverwrites ( channel , member ) ; return validatePermissions ( channelOverwrites , permissions ) ; }
Checks if the given member has these permissions for the given channel
Checks if the given member has these permissions for the given channel
// First we need the overwrite bits this member has // Second use the validatePermissions function to check if the member has every permission