Table of Contents

Method GetGlobalApplicationCommandsAsync

Namespace
DisCatSharp
Assembly
DisCatSharp.dll

GetGlobalApplicationCommandsAsync(bool, CancellationToken)

Gets all the global application commands for this application.

public Task<IReadOnlyList<DiscordApplicationCommand>> GetGlobalApplicationCommandsAsync(bool withLocalizations = false, CancellationToken cancellationToken = default)

Parameters

withLocalizations bool

Whether to get the full localization dict.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<IReadOnlyList<DiscordApplicationCommand>>

A list of global application commands.