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
jsonModelJsonPermissionOverwrite
Properties
Allowed
The set of permissions to grant the overwrite target.
public Permissions Allowed { get; }
Property Value
Denied
The set of permissions to deny the overwrite target.
public Permissions Denied { get; }
Property Value
Id
The ID of the user/role affected by this overwrite.
public override ulong Id { get; }
Property Value
Type
Specifies whether the overwrite applies to a user, or a role.
public PermissionOverwriteType Type { get; }