Table of Contents

Class RestGlobalCommand

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents a Rest-based global application command.

public class RestGlobalCommand : RestApplicationCommand, IApplicationCommand, ISnowflakeEntity, IEntity<ulong>, IDeletable
Inheritance
RestGlobalCommand
Implements
Inherited Members

Methods

DeleteAsync(RequestOptions)

Deletes this object and all its children.

public override Task DeleteAsync(RequestOptions options = null)

Parameters

options RequestOptions

The options to be used when sending the request.

Returns

Task

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

Modifies this RestApplicationCommand.

public override Task ModifyAsync<TArg>(Action<TArg> func, RequestOptions options = null) where TArg : ApplicationCommandProperties

Parameters

func Action<TArg>

The delegate containing the properties to modify the command with.

options RequestOptions

The options to be used when sending the request.

Returns

Task

The modified command.

Type Parameters

TArg