Table of Contents

Class DiscordOverwriteBuilder

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

Represents a Discord permission overwrite builder.

public sealed class DiscordOverwriteBuilder
Inheritance
DiscordOverwriteBuilder

Constructors

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.

Target

Gets 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.

For(DiscordMember)

Sets the member to which this overwrite applies.

For(DiscordRole)

Sets the role to which this overwrite applies.

FromAsync(DiscordOverwrite)

Populates this builder with data from another overwrite object.