Method GetGuildApplicationCommandAsync
- Namespace
- DisCatSharp
- Assembly
- DisCatSharp.dll
GetGuildApplicationCommandAsync(ulong, ulong, CancellationToken)
Gets a application command in a guild by its id.
public Task<DiscordApplicationCommand> GetGuildApplicationCommandAsync(ulong guildId, ulong commandId, CancellationToken cancellationToken = default)
Parameters
guildIdulongThe id of the guild the application command is in.
commandIdulongThe id of the command to get.
cancellationTokenCancellationTokenA token to cancel the request.
Returns
- Task<DiscordApplicationCommand>
The command with the id.