Search Results for

    Show / Hide Table of Contents

    Class ApplicationCommandProperties

    Represents the base class to create/modify application commands.

    Inheritance
    Object
    ApplicationCommandProperties
    MessageCommandProperties
    SlashCommandProperties
    UserCommandProperties
    Namespace: Discord
    Assembly: Discord.Net.Core.dll
    Syntax
    public abstract class ApplicationCommandProperties : object

    Properties

    | Improve this Doc View Source

    DefaultMemberPermissions

    Gets or sets the default permissions required by a user to execute this application command.

    Declaration
    public Optional<GuildPermission> DefaultMemberPermissions { get; set; }
    Property Value
    Type Description
    Optional<GuildPermission>
    | Improve this Doc View Source

    DescriptionLocalizations

    Gets or sets the localization dictionary for the description field of this command.

    Declaration
    public IReadOnlyDictionary<string, string> DescriptionLocalizations { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<String, String>
    | Improve this Doc View Source

    IsDefaultPermission

    Gets or sets whether the command is enabled by default when the app is added to a guild. Default is true

    Declaration
    public Optional<bool> IsDefaultPermission { get; set; }
    Property Value
    Type Description
    Optional<Boolean>
    | Improve this Doc View Source

    IsDMEnabled

    Gets or sets whether or not this command can be used in DMs.

    Declaration
    public Optional<bool> IsDMEnabled { get; set; }
    Property Value
    Type Description
    Optional<Boolean>
    | Improve this Doc View Source

    IsNsfw

    Gets or sets whether or not this command is age restricted.

    Declaration
    public Optional<bool> IsNsfw { get; set; }
    Property Value
    Type Description
    Optional<Boolean>
    | Improve this Doc View Source

    Name

    Gets or sets the name of this command.

    Declaration
    public Optional<string> Name { get; set; }
    Property Value
    Type Description
    Optional<String>
    | Improve this Doc View Source

    NameLocalizations

    Gets or sets the localization dictionary for the name field of this command.

    Declaration
    public IReadOnlyDictionary<string, string> NameLocalizations { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<String, String>

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2023 3.12.0