Table of Contents

Method EnrollTwoFactor

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

EnrollTwoFactor(DiscordClient, DiscordUser)

Registers two factor for the given user.

public static (string Secret, MemoryStream QrCode) EnrollTwoFactor(this DiscordClient client, DiscordUser user)

Parameters

client DiscordClient

The discord client.

user DiscordUser

The user to check.

Returns

(string Secret, MemoryStream QrCode)

A Tuple<T1, T2> where Secret is a string with the secret itself and QrCode a MemoryStream with the qr code image.