Method BulkOverwriteGuildApplicationCommandsAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
BulkOverwriteGuildApplicationCommandsAsync(ulong, IEnumerable<DiscordApplicationCommand>)
Overwrites the existing application commands in a guild. New commands are automatically created and missing commands are automatically deleted.
public Task<IReadOnlyList<DiscordApplicationCommand>> BulkOverwriteGuildApplicationCommandsAsync(ulong guildId, IEnumerable<DiscordApplicationCommand> commands)
Parameters
guildId
ulongThe ID of the guild.
commands
IEnumerable<DiscordApplicationCommand>The list of commands to overwrite with.
Returns
- Task<IReadOnlyList<DiscordApplicationCommand>>
The list of guild commands.