Table of Contents

Class ApplicationCommandRequireGuildAttribute

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

Defines that this application command is only usable within a guild.

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

Constructors

ApplicationCommandRequireGuildAttribute()

Defines that this command is only usable within a guild.

Methods

ExecuteChecksAsync(BaseContext)

Runs checks.