Table of Contents

Method GetGlobalApplicationCommandAsync

Namespace
DSharpPlus
Assembly
DSharpPlus.dll

GetGlobalApplicationCommandAsync(ulong)

Gets a global application command by its id.

public Task<DiscordApplicationCommand> GetGlobalApplicationCommandAsync(ulong commandId)

Parameters

commandId ulong

The ID of the command to get.

Returns

Task<DiscordApplicationCommand>

The command with the ID.

GetGlobalApplicationCommandAsync(string, bool)

Gets a global application command by its name.

public Task<DiscordApplicationCommand> GetGlobalApplicationCommandAsync(string commandName, bool withLocalizations = false)

Parameters

commandName string

The name of the command to get.

withLocalizations bool

Whether to include localizations in the response.

Returns

Task<DiscordApplicationCommand>

The command with the name.