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