Table of Contents

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 DiscordClient

Client to enable TwoFactor for.

cfg TwoFactorConfiguration

TwoFactor configuration to use.

Returns

TwoFactorExtension

Created TwoFactorExtension.