Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    Object
    DiscordApplicationCommandData
    Implements
    IEquatable<DiscordApplicationCommandData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    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 Source

    ApplicationId

    Unique id of the parent application.

    Declaration
    [JsonPropertyName("application_id")]
    public ulong ApplicationId { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Description

    1-100 character description.

    Declaration
    [JsonPropertyName("description")]
    public string Description { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Id

    Unique id of the command.

    Declaration
    [JsonPropertyName("id")]
    public ulong Id { get; set; }
    Property Value
    Type Description
    System.UInt64
    | Improve this Doc View Source

    Name

    1-32 lowercase character name matching ^[\w-]{1,32}$.

    Declaration
    [JsonPropertyName("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Options

    the parameters for the command.

    Declaration
    [JsonPropertyName("options")]
    public IEnumerable<DiscordApplicationCommandOptionData> Options { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordApplicationCommandOptionData>

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX