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