Search Results for

    Show / Hide Table of Contents

    Class DiscordCreateApplicationCommand

    Represents a discord Create Global Application Command API request model. Docs: https://discord.com/developers/docs/interactions/application-commands#endpoints-json-params

    Inheritance
    System.Object
    DiscordCreateApplicationCommand
    Implements
    System.IEquatable<DiscordCreateApplicationCommand>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Color_Chan.Discord.Core.Common.API.Params.Application
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordCreateApplicationCommand : IEquatable<DiscordCreateApplicationCommand>

    Properties

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

    Description

    1-100 character description.

    Declaration
    [JsonPropertyName("description")]
    public string Description { get; set; }
    Property Value
    Type Description
    System.String
    | 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
    System.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