Table of Contents

Method BulkOverwriteGuildApplicationCommandsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.Rest.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.