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)

Gets a global application command by its name.

public Task<DiscordApplicationCommand> GetGlobalApplicationCommandAsync(string commandName)

Parameters

commandName string

The name of the command to get.

Returns

Task<DiscordApplicationCommand>

The command with the name.