Table of Contents

Method UseApplicationCommandsAsync

Namespace
DisCatSharp.ApplicationCommands
Assembly
DisCatSharp.ApplicationCommands.dll

UseApplicationCommandsAsync(DiscordShardedClient, ApplicationCommandsConfiguration?)

Enables application commands on this DiscordShardedClient.

public static Task<IReadOnlyDictionary<int, ApplicationCommandsExtension>> UseApplicationCommandsAsync(this DiscordShardedClient client, ApplicationCommandsConfiguration? config = null)

Parameters

client DiscordShardedClient

Client to enable application commands on.

config ApplicationCommandsConfiguration

Configuration to use.

Returns

Task<IReadOnlyDictionary<int, ApplicationCommandsExtension>>

A dictionary of created ApplicationCommandsExtension with the key being the shard id.