Table of Contents

Class DiscordOverwriteBuilder

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

Represents a Discord permission overwrite builder.

public sealed class DiscordOverwriteBuilder
Inheritance
DiscordOverwriteBuilder
Inherited Members

Constructors

DiscordOverwriteBuilder()

Creates a new and empty DiscordOverwriteBuilder.

DiscordOverwriteBuilder(DiscordMember)

Creates a new DiscordOverwriteBuilder for a DiscordMember.

DiscordOverwriteBuilder(DiscordOverwrite)

Creates a new DiscordOverwriteBuilder from DiscordOverwrite.

DiscordOverwriteBuilder(DiscordRole)

Creates a new DiscordOverwriteBuilder for a DiscordRole.

DiscordOverwriteBuilder(ulong, OverwriteType)

Creates a new DiscordOverwriteBuilder for a SnowflakeObject.

Properties

Allowed

Gets or sets the allowed permissions for this overwrite.

Denied

Gets or sets the denied permissions for this overwrite.

Target

Gets or sets the target for this overwrite.

Type

Gets or sets the type of this overwrite's target.

Methods

Allow(Permissions)

Allows a permission for this overwrite.

Deny(Permissions)

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.

Remove(Permissions)

Unsets a permission for this overwrite.

SetTarget(DiscordMember)

Sets the member to which this overwrite applies.

SetTarget(DiscordRole)

Sets the role to which this overwrite applies.