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
client
DiscordShardedClientClient to enable CommandsNext for.
cfg
CommandsNextConfigurationCommandsNext configuration to use.
Returns
- Task<IReadOnlyDictionary<int, CommandsNextExtension>>
A dictionary of created CommandsNextExtension, indexed by shard id.