Table of Contents

Class TwoFactorExtension

Namespace
DisCatSharp.Extensions.TwoFactorCommands
Assembly
DisCatSharp.Extensions.TwoFactorCommands.dll

Represents a TwoFactorExtension.

public sealed class TwoFactorExtension : BaseExtension
Inheritance
TwoFactorExtension
Inherited Members

Properties

Services

Gets the service provider this TwoFactor module was configured with.

Methods

DisenrollUser(ulong)

Unenrolls given user id from two factor auth.

EnrollUser(ulong, string)

Enrolls given user id with two factor auth.

IsEnrolled(ulong)

Checks whether given user id is enrolled in two factor auth.

IsValidCode(ulong, string)

Checks whether the two factor auth code is valid for given user id.

Setup(DiscordClient)

DO NOT USE THIS MANUALLY.