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
DiscordClientThe discord client.
user
DiscordUserThe user to check.
Returns
- (string Secret, MemoryStream QrCode)
A Tuple<T1, T2> where
Secret
is a string with the secret itself andQrCode
a MemoryStream with the qr code image.