Class DiscordApplicationCommandPermissionsData
Represents a discord Application Command Permissions Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object-application-command-permissions-structure
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Application
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordApplicationCommandPermissionsData
Properties
| Improve this Doc View SourceAllow
true to allow, false, to disallow.
Declaration
[JsonPropertyName("permission")]
public bool Allow { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Id
The id of the role or user.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Type
The type of the IDiscordApplicationCommandPermissions.
Declaration
[JsonPropertyName("type")]
public DiscordApplicationCommandPermissionsType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordApplicationCommandPermissionsType |