Class RestGlobalCommand
Represents a Rest-based global application command.
Inherited Members
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 SourceDeleteAsync(RequestOptions)
Declaration
public override async Task DeleteAsync(RequestOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
RequestOptions | options |
Returns
Type | Description |
---|---|
Task |
Overrides
| Improve this Doc View SourceModifyAsync<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)