Method GetTwoFactor
- Namespace
- DisCatSharp.Extensions.TwoFactorCommands
- Assembly
- DisCatSharp.Extensions.TwoFactorCommands.dll
GetTwoFactor(DiscordClient)
Gets the active TwoFactor module for this client.
public static TwoFactorExtension? GetTwoFactor(this DiscordClient client)
Parameters
client
DiscordClientClient to get TwoFactor module from.
Returns
- TwoFactorExtension
The module, or null if not activated.