Search Results for

    Show / Hide Table of Contents

    Class RestApplicationCommand

    Represents a Rest-based implementation of the IApplicationCommand.

    Inheritance
    Object
    RestEntity<UInt64>
    RestApplicationCommand
    RestGlobalCommand
    RestGuildCommand
    Implements
    IEntity<UInt64>
    IApplicationCommand
    ISnowflakeEntity
    IEntity<UInt64>
    IDeletable
    Inherited Members
    RestEntity<UInt64>.Id
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public abstract class RestApplicationCommand : RestEntity<ulong>, IEntity<ulong>, IApplicationCommand, ISnowflakeEntity, IEntity<ulong>, IDeletable

    Properties

    | Improve this Doc View Source

    ApplicationId

    Declaration
    public ulong ApplicationId { get; }
    Property Value
    Type Description
    UInt64
    | Improve this Doc View Source

    CreatedAt

    Declaration
    public DateTimeOffset CreatedAt { get; }
    Property Value
    Type Description
    DateTimeOffset
    | Improve this Doc View Source

    DefaultMemberPermissions

    Set of default GuildPermission required to invoke the command.

    Declaration
    public GuildPermissions DefaultMemberPermissions { get; }
    Property Value
    Type Description
    GuildPermissions
    | Improve this Doc View Source

    Description

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

    IsDefaultPermission

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

    IsEnabledInDm

    Declaration
    public bool IsEnabledInDm { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Name

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

    Options

    Gets a collection of options for this command.

    Declaration
    public IReadOnlyCollection<RestApplicationCommandOption> Options { get; }
    Property Value
    Type Description
    IReadOnlyCollection<RestApplicationCommandOption>
    | Improve this Doc View Source

    Type

    Gets the type of the command.

    Declaration
    public ApplicationCommandType Type { get; }
    Property Value
    Type Description
    ApplicationCommandType

    Methods

    | Improve this Doc View Source

    DeleteAsync(RequestOptions)

    Declaration
    public abstract Task DeleteAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    ModifyAsync(Action<ApplicationCommandProperties>, RequestOptions)

    Declaration
    public Task ModifyAsync(Action<ApplicationCommandProperties> func, RequestOptions options = null)
    Parameters
    Type Name Description
    Action<ApplicationCommandProperties> func
    RequestOptions options
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    ModifyAsync<TArg>(Action<TArg>, RequestOptions)

    Declaration
    public abstract Task ModifyAsync<TArg>(Action<TArg> func, RequestOptions options = null)
        where TArg : ApplicationCommandProperties
    Parameters
    Type Name Description
    Action<TArg> func
    RequestOptions options
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    TArg

    Implements

    IEntity<TId>
    IApplicationCommand
    ISnowflakeEntity
    IEntity<TId>
    IDeletable

    Theme

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