Class DiscordApplicationCommandData
Represents a discord Application Command Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure
Implements
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 DiscordApplicationCommandData : IEquatable<DiscordApplicationCommandData>
Properties
| Improve this Doc View SourceApplicationId
Unique id of the parent application.
Declaration
[JsonPropertyName("application_id")]
public ulong ApplicationId { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
DefaultPermission
Whether the command is enabled by default when the app is added to a guild.
Declaration
[JsonPropertyName("default_permission")]
public bool? DefaultPermission { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Description
1-100 character description.
Declaration
[JsonPropertyName("description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
GuildId
Guild id of the command, if not global.
Declaration
[JsonPropertyName("guild_id")]
public ulong? GuildId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.UInt64> |
Id
Unique id of the command.
Declaration
[JsonPropertyName("id")]
public ulong Id { get; set; }
Property Value
Type | Description |
---|---|
System.UInt64 |
Name
1-32 lowercase character name matching ^[\w-]{1,32}$.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
Options
the parameters for the command.
Declaration
[JsonPropertyName("options")]
public IEnumerable<DiscordApplicationCommandOptionData> Options { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordApplicationCommandOptionData> |