Table of Contents

Class DiscordOverwrite

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a permission overwrite for a channel.

public class DiscordOverwrite : SnowflakeObject
Inheritance
object
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(DiscordPermissions)

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

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(DiscordPermissions?, DiscordPermissions?, string?)

Updates this channel overwrite.