Method UseTwoFactor
- Namespace
- DisCatSharp.Extensions.TwoFactorCommands
- Assembly
- DisCatSharp.Extensions.TwoFactorCommands.dll
UseTwoFactor(DiscordClient, TwoFactorConfiguration?)
Enables TwoFactor module on this DiscordClient.
public static TwoFactorExtension UseTwoFactor(this DiscordClient client, TwoFactorConfiguration? cfg = null)
Parameters
client
DiscordClientClient to enable TwoFactor for.
cfg
TwoFactorConfigurationTwoFactor configuration to use.
Returns
- TwoFactorExtension
Created TwoFactorExtension.