Method BulkOverwriteApplicationCommandsAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.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