Method UseCommandsNextAsync
- Namespace
- DisCatSharp.CommandsNext
- Assembly
- DisCatSharp.CommandsNext.dll
UseCommandsNextAsync(DiscordShardedClient, CommandsNextConfiguration)
Enables CommandsNext module on all shards in this DiscordShardedClient.
public static Task<IReadOnlyDictionary<int, CommandsNextExtension>> UseCommandsNextAsync(this DiscordShardedClient client, CommandsNextConfiguration cfg)
Parameters
clientDiscordShardedClientClient to enable CommandsNext for.
cfgCommandsNextConfigurationCommandsNext configuration to use.
Returns
- Task<IReadOnlyDictionary<int, CommandsNextExtension>>
A dictionary of created CommandsNextExtension, indexed by shard id.