Table of Contents

Class ApplicationCommandRequireTeamReadOnlyAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

Defines that this application command is restricted to team members of the bot with read-only role or higher.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class ApplicationCommandRequireTeamReadOnlyAttribute : ApplicationCommandCheckBaseAttribute
Inheritance
ApplicationCommandRequireTeamReadOnlyAttribute
Inherited Members

Constructors

ApplicationCommandRequireTeamReadOnlyAttribute()

Defines that this application command is restricted to team members of the bot with read-only role or higher.

Methods

ExecuteChecksAsync(BaseContext)

Runs checks.