Table of Contents

Class ApplicationCommandPermission

Namespace
NetCord
Assembly
NetCord.dll

Represents a permission override for a command in a guild.

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

Constructors

ApplicationCommandPermission(JsonApplicationCommandGuildPermission)

Represents a permission override for a command in a guild.

public ApplicationCommandPermission(JsonApplicationCommandGuildPermission jsonModel)

Parameters

jsonModel JsonApplicationCommandGuildPermission

Properties

Id

The ID of the override's relevant role, user, or channel, depending on the override's Type. May also be:

  • @everyone Where it is equal to the ID of the override's relevant guild.
  • 'All Channels' Where it is equal to the ID of the override's relevant guild - 1.
public override ulong Id { get; }

Property Value

ulong

Permission

Indicates whether the override is intended to enable or disable a command.

public bool Permission { get; }

Property Value

bool

Type

Indicates the scope of the permission override.

public ApplicationCommandGuildPermissionType Type { get; }

Property Value

ApplicationCommandGuildPermissionType