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​
Type | Name | Description |
---|---|---|
Discord.RequestOptions | options | The 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​
Type | Name | Description |
---|---|---|
System.Action<<TArg>> | func | The delegate containing the properties to modify the command with. |
Discord.RequestOptions | options | The options to be used when sending the request. |
Type Parameters​
TArg