Class ApplicationCommandRequireTeamAdminAttribute
- Namespace
- DisCatSharp.ApplicationCommands.Attributes
- Assembly
- DisCatSharp.ApplicationCommands.dll
Defines that this application command is restricted to team members of the bot with admin role or higher.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class ApplicationCommandRequireTeamAdminAttribute : ApplicationCommandCheckBaseAttribute
- Inheritance
-
ApplicationCommandRequireTeamAdminAttribute
- Inherited Members
Constructors
- ApplicationCommandRequireTeamAdminAttribute()
Defines that this application command is restricted to team members of the bot with admin role or higher.
Methods
- ExecuteChecksAsync(BaseContext)
Runs checks.