Skip to main content

Class RestGlobalCommand

Represents a Rest-based global application command.

Assembly: Discord.Net.Rest.dll​
View Source​
Declaration
public class RestGlobalCommand : RestApplicationCommand, IApplicationCommand, ISnowflakeEntity, IEntity<ulong>, IDeletable

Methods​

DeleteAsync(RequestOptions)​

Deletes this object and all its children.

View Source​
Declaration
public override async Task DeleteAsync(RequestOptions options = null)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeNameDescription
Discord.RequestOptionsoptionsThe options to be used when sending the request.

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

Modifies this Discord.Rest.RestApplicationCommand.

View Source​
Declaration
public override async Task ModifyAsync<TArg>(Action<TArg> func, RequestOptions options = null)
where TArg : ApplicationCommandProperties
Returns​

System.Threading.Tasks.Task: The modified command.

Parameters​
TypeNameDescription
System.Action<<TArg>>funcThe delegate containing the properties to modify the command with.
Discord.RequestOptionsoptionsThe options to be used when sending the request.
Type Parameters​
  • TArg

Implements​