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
clientDiscordShardedClientClient to enable application commands on.
configApplicationCommandsConfigurationConfiguration to use.
Returns
- Task<IReadOnlyDictionary<int, ApplicationCommandsExtension>>
A dictionary of created ApplicationCommandsExtension with the key being the shard id.