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
ulongThe 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
stringThe name of the command to get.
withLocalizations
boolWhether to include localizations in the response.
Returns
- Task<DiscordApplicationCommand>
The command with the name.