Method BulkOverwriteApplicationCommandsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
BulkOverwriteApplicationCommandsAsync(IEnumerable<DiscordApplicationCommand>)
Overwrites the existing application commands in this guild. New commands are automatically created and missing commands are automatically delete
public Task<IReadOnlyList<DiscordApplicationCommand>> BulkOverwriteApplicationCommandsAsync(IEnumerable<DiscordApplicationCommand> commands)
Parameters
commands
IEnumerable<DiscordApplicationCommand>The list of commands to overwrite with.
Returns
- Task<IReadOnlyList<DiscordApplicationCommand>>
The list of guild commands