Table of Contents

Method DeleteOverwriteAsync

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

DeleteOverwriteAsync(DiscordMember, string)

Deletes a channel permission overwrite for specified member.

public Task DeleteOverwriteAsync(DiscordMember member, string reason = null)

Parameters

member DiscordMember

The member to have the permission deleted.

reason string

Reason for audit logs.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageRoles permission.

NotFoundException

Thrown when the channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.

DeleteOverwriteAsync(DiscordRole, string)

Deletes a channel permission overwrite for specified role.

public Task DeleteOverwriteAsync(DiscordRole role, string reason = null)

Parameters

role DiscordRole

The role to have the permission deleted.

reason string

Reason for audit logs.

Returns

Task

Exceptions

UnauthorizedException

Thrown when the client does not have the ManageRoles permission.

NotFoundException

Thrown when the channel does not exist.

BadRequestException

Thrown when an invalid parameter was provided.

ServerErrorException

Thrown when Discord is unable to process the request.