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)
Gets a global application command by its name.
public Task<DiscordApplicationCommand> GetGlobalApplicationCommandAsync(string commandName)
Parameters
commandName
stringThe name of the command to get.
Returns
- Task<DiscordApplicationCommand>
The command with the name.