Table of Contents

Method UnenrollTwoFactorAsync

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

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.

public static Task<TwoFactorResponse> UnenrollTwoFactorAsync(this BaseContext ctx)

Parameters

ctx BaseContext

The base context.

Returns

Task<TwoFactorResponse>

A TwoFactorResponse.