async function editChannelOverwrite(
  guildId,
  channelId,
  overwriteId,
  options,
) {
  await requireBotGuildPermissions(guildId, [
    "MANAGE_ROLES",
  ]);
  return await rest.runMethod(
    "put",
    endpoints.CHANNEL_OVERWRITE(channelId, overwriteId),
    {
      allow: calculateBits(options.allow),
      deny: calculateBits(options.deny),
      type: options.type,
    },
  );
}
/** Edit the channel permission overwrites for a user or role in this channel. Requires `MANAGE_ROLES` permission. */
Edit the channel permission overwrites for a user or role in this channel.
Edit the channel permission overwrites for a user or role in this channel .
async function editChannelOverwrite(
  guildId,
  channelId,
  overwriteId,
  options,
) {
  await requireBotGuildPermissions(guildId, [
    "MANAGE_ROLES",
  ]);
  return await rest.runMethod(
    "put",
    endpoints.CHANNEL_OVERWRITE(channelId, overwriteId),
    {
      allow: calculateBits(options.allow),
      deny: calculateBits(options.deny),
      type: options.type,
    },
  );
}
async function editChannelOverwrite ( guildId , channelId , overwriteId , options , ) { await requireBotGuildPermissions ( guildId , [ "MANAGE_ROLES" , ] ) ; return await rest . runMethod ( "put" , endpoints . CHANNEL_OVERWRITE ( channelId , overwriteId ) , { allow : calculateBits ( options . allow ) , deny : calculateBits ( options . deny ) , type : options . type , } , ) ; }
Edit the channel permission overwrites for a user or role in this channel.
Edit the channel permission overwrites for a user or role in this channel .