Method GetTwoFactorAsync
- Namespace
- DisCatSharp.Extensions.TwoFactorCommands
- Assembly
- DisCatSharp.Extensions.TwoFactorCommands.dll
GetTwoFactorAsync(DiscordShardedClient)
Gets the active TwoFactor modules for all shards in this client.
public static Task<IReadOnlyDictionary<int, TwoFactorExtension?>> GetTwoFactorAsync(this DiscordShardedClient client)
Parameters
client
DiscordShardedClientClient to get TwoFactor instances from.
Returns
- Task<IReadOnlyDictionary<int, TwoFactorExtension>>
A dictionary of the modules, indexed by shard id.