Class RestGlobalCommand
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
RequestOptionsThe options to be used when sending the request.
Returns
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
RequestOptionsThe options to be used when sending the request.
Returns
- Task
The modified command.
Type Parameters
TArg