Table of Contents

Method GetGlobalApplicationCommandAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetGlobalApplicationCommandAsync(ulong, CancellationToken)

Gets a global application command by its id.

public Task<DiscordApplicationCommand> GetGlobalApplicationCommandAsync(ulong commandId, CancellationToken cancellationToken = default)

Parameters

commandId ulong

The id of the command to get.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<DiscordApplicationCommand>

The command with the id.