Class CommandRequireEnrolledTwoFactorAttribute
- Namespace
- DisCatSharp.CommandsNext.Attributes
- Assembly
- DisCatSharp.Extensions.TwoFactorCommands.dll
Defines that this command can only be executed if the user is enrolled in two factor auth.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
[Experimental("No support for this yet")]
public sealed class CommandRequireEnrolledTwoFactorAttribute : CheckBaseAttribute
- Inheritance
-
CommandRequireEnrolledTwoFactorAttribute
- Inherited Members
Constructors
- CommandRequireEnrolledTwoFactorAttribute()
Defines that this command can only be executed if the user is enrolled in two factor auth.
Methods
- ExecuteCheckAsync(CommandContext, bool)
Runs checks.