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