Table of Contents

Method BulkOverwriteGlobalApplicationCommandsAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

BulkOverwriteGlobalApplicationCommandsAsync(IEnumerable<DiscordApplicationCommand>)

Overwrites the existing global application commands. New commands are automatically created and missing commands are automatically deleted.

public Task<IReadOnlyList<DiscordApplicationCommand>> BulkOverwriteGlobalApplicationCommandsAsync(IEnumerable<DiscordApplicationCommand> commands)

Parameters

commands IEnumerable<DiscordApplicationCommand>

The list of commands to overwrite with.

Returns

Task<IReadOnlyList<DiscordApplicationCommand>>

The list of global commands.