Table of Contents

Class PermissionOverwrite

Namespace
NetCord
Assembly
NetCord.dll

Represents the set of permission overwrites for a given user/role ID.

public class PermissionOverwrite : Entity, IEntity, ISpanFormattable, IFormattable, IEquatable<Entity>, IJsonModel<JsonPermissionOverwrite>
Inheritance
PermissionOverwrite
Implements
Inherited Members

Constructors

PermissionOverwrite(JsonPermissionOverwrite)

Represents the set of permission overwrites for a given user/role ID.

public PermissionOverwrite(JsonPermissionOverwrite jsonModel)

Parameters

jsonModel JsonPermissionOverwrite

Properties

Allowed

The set of permissions to grant the overwrite target.

public Permissions Allowed { get; }

Property Value

Permissions

Denied

The set of permissions to deny the overwrite target.

public Permissions Denied { get; }

Property Value

Permissions

Id

The ID of the user/role affected by this overwrite.

public override ulong Id { get; }

Property Value

ulong

Type

Specifies whether the overwrite applies to a user, or a role.

public PermissionOverwriteType Type { get; }

Property Value

PermissionOverwriteType