Class ApplicationCommandRequireEnrolledTwoFactorAttribute
- Namespace
- DisCatSharp.ApplicationCommands.Attributes
- Assembly
- DisCatSharp.Extensions.TwoFactorCommands.dll
Defines that this application command can only be executed if the user is enrolled in two factor auth.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class ApplicationCommandRequireEnrolledTwoFactorAttribute : ApplicationCommandCheckBaseAttribute
- Inheritance
-
ApplicationCommandRequireEnrolledTwoFactorAttribute
- Inherited Members
Constructors
- ApplicationCommandRequireEnrolledTwoFactorAttribute()
Defines that this application command can only be executed if the user is enrolled in two factor auth.
Methods
- ExecuteChecksAsync(BaseContext)
Runs checks.