Table of Contents

Class DiscordOverwriteBuilder

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a Discord permission overwrite builder.

public sealed record DiscordOverwriteBuilder
Inheritance
DiscordOverwriteBuilder

Constructors

DiscordOverwriteBuilder()

Creates a new Discord permission overwrite builder. This class can be used to construct permission overwrites for guild channels, used when creating channels.

DiscordOverwriteBuilder(DiscordMember)

Creates a new Discord permission overwrite builder for a member. This class can be used to construct permission overwrites for guild channels, used when creating channels.

DiscordOverwriteBuilder(DiscordRole)

Creates a new Discord permission overwrite builder for a role. This class can be used to construct permission overwrites for guild channels, used when creating channels.

Properties

Allowed

Gets or sets the allowed permissions for this overwrite.

Denied

Gets or sets the denied permissions for this overwrite.

TargetId

The id of the target for this overwrite.

Type

Gets the type of this overwrite's target.

Methods

Allow(DiscordPermissions)

Allows a permission for this overwrite.

Deny(DiscordPermissions)

Denies a permission for this overwrite.

From(DiscordOverwrite)

Populates this builder with data from another overwrite object.

GetTargetAsync(DiscordGuild)

Attempts to get the entity representing the target of this overwrite.