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
clientDiscordClientClient to enable TwoFactor for.
cfgTwoFactorConfigurationTwoFactor configuration to use.
Returns
- TwoFactorExtension
Created TwoFactorExtension.