Table of Contents

Method BulkOverwriteGuildApplicationCommandsAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.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 ulong

The id of the guild.

commands IEnumerable<DiscordApplicationCommand>

The list of commands to overwrite with.

Returns

Task<IReadOnlyList<DiscordApplicationCommand>>

The list of guild commands.