Table of Contents

Class TwoFactorApplicationCommandExtension

Namespace
DisCatSharp.Extensions.TwoFactorCommands.ApplicationCommands
Assembly
DisCatSharp.Extensions.TwoFactorCommands.dll
public static class TwoFactorApplicationCommandExtension
Inheritance
TwoFactorApplicationCommandExtension
Inherited Members

Methods

EnrollTwoFactorAsync(BaseContext)

Enrolls the user via modal input into two factor.

This uses DisCatSharp.Interactivity.

To be used as first action for application commands.

RequestTwoFactorAsync(BaseContext)

Asks the user via modal input for the two factor code.

This uses DisCatSharp.Interactivity.

To be used as first action for application commands.

RequestTwoFactorAsync(ComponentInteractionCreateEventArgs, DiscordClient)

Asks the user via modal input for the two factor code.

This uses DisCatSharp.Interactivity.

To be used as first action for button.

UnenrollTwoFactorAsync(BaseContext)

Unenrolls the user from two factor authentication via modal verification.

This uses DisCatSharp.Interactivity.

To be used as first action for application commands.