Search Results for

    Show / Hide Table of Contents

    Interface IDiscordApplicationCommand

    Represents a discord Application Command Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-structure

    Namespace: Color_Chan.Discord.Core.Common.Models.Application
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public interface IDiscordApplicationCommand

    Properties

    | Improve this Doc View Source

    ApplicationId

    Unique id of the parent application.

    Declaration
    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
    bool? DefaultPermission { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    Description

    1-100 character description.

    Declaration
    string Description { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    GuildId

    Guild id of the command, if not global.

    Declaration
    ulong? GuildId { get; set; }
    Property Value
    Type Description
    System.Nullable<System.UInt64>
    | Improve this Doc View Source

    Id

    Unique id of the command.

    Declaration
    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
    string Name { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    Options

    the parameters for the command.

    Declaration
    IEnumerable<IDiscordApplicationCommandOption> Options { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordApplicationCommandOption>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX