Table of Contents

Class DiscordOverwrite

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a permission overwrite for a channel.

public class DiscordOverwrite : SnowflakeObject
Inheritance
DiscordOverwrite
Inherited Members

Properties

Allowed

Gets the allowed permission set.

Denied

Gets the denied permission set.

Type

Gets the type of the overwrite. Either "role" or "member".

Methods

CheckPermission(Permissions)

Checks whether given permissions are allowed, denied, or not set.

ConvertToBuilder()

Converts this DiscordOverwrite into a DiscordOverwriteBuilder.

DeleteAsync(string)

Deletes this channel overwrite.

GetMemberAsync()

Gets the DiscordMember that is affected by this overwrite.

GetRoleAsync()

Gets the DiscordRole that is affected by this overwrite.

UpdateAsync(Permissions?, Permissions?, string)

Updates this channel overwrite.

Operators

implicit operator DiscordOverwriteBuilder(DiscordOverwrite)

Automatically converts this DiscordOverwrite to a DiscordOverwriteBuilder.