Search Results for

    Show / Hide Table of Contents

    Class RestGlobalCommand

    Represents a Rest-based global application command.

    Inheritance
    Object
    RestEntity<UInt64>
    RestApplicationCommand
    RestGlobalCommand
    Implements
    IEntity<UInt64>
    IApplicationCommand
    ISnowflakeEntity
    IEntity<UInt64>
    IDeletable
    Inherited Members
    RestApplicationCommand.ApplicationId
    RestApplicationCommand.Type
    RestApplicationCommand.Name
    RestApplicationCommand.Description
    RestApplicationCommand.IsDefaultPermission
    RestApplicationCommand.IsEnabledInDm
    RestApplicationCommand.DefaultMemberPermissions
    RestApplicationCommand.Options
    RestApplicationCommand.CreatedAt
    RestApplicationCommand.ModifyAsync(Action<ApplicationCommandProperties>, RequestOptions)
    RestEntity<UInt64>.Id
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class RestGlobalCommand : RestApplicationCommand, IEntity<ulong>, IApplicationCommand, ISnowflakeEntity, IEntity<ulong>, IDeletable

    Methods

    | Improve this Doc View Source

    DeleteAsync(RequestOptions)

    Declaration
    public override async Task DeleteAsync(RequestOptions options = null)
    Parameters
    Type Name Description
    RequestOptions options
    Returns
    Type Description
    Task
    Overrides
    RestApplicationCommand.DeleteAsync(RequestOptions)
    | Improve this Doc View Source

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

    Modifies this RestApplicationCommand.

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

    The delegate containing the properties to modify the command with.

    RequestOptions options

    The options to be used when sending the request.

    Returns
    Type Description
    Task

    The modified command.

    Type Parameters
    Name Description
    TArg
    Overrides
    Discord.Rest.RestApplicationCommand.ModifyAsync<TArg>(Action<TArg>, Discord.RequestOptions)

    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.6.0