Nostrum.Api.edit_channel_permissions

You're seeing just the function edit_channel_permissions, go back to Nostrum.Api module for more information.
Link to this function

edit_channel_permissions(channel_id, overwrite_id, permission_info, reason \\ nil)

View Source

Specs

edit_channel_permissions(
  integer(),
  integer(),
  %{
    :type => String.t(),
    optional(:allow) => integer(),
    optional(:deny) => integer()
  },
  Nostrum.Struct.Guild.AuditLogEntry.reason()
) :: error() | {:ok}

Edit the permission overwrites for a user or role.

Role or user to overwrite is specified by overwrite_id.

permission_info is a map with the following keys:

  • type - Required; member if editing a user, role if editing a role.
  • allow - Bitwise value of allowed permissions.
  • deny - Bitwise value of denied permissions.
  • type - member if editing a user, role if editing a role.

An optional reason can be provided for the audit log.

allow and deny are defaulted to 0, meaning that even if you don't specify them, they will override their respective former values in an existing overwrite.