Class ApplicationCommandRequireNsfwAttribute
- 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 ApplicationCommandRequireNsfwAttribute : ApplicationCommandCheckBaseAttribute
- Inheritance
-
ApplicationCommandRequireNsfwAttribute
- Inherited Members
Constructors
- ApplicationCommandRequireNsfwAttribute()
Defines that this command is only usable within a guild.
Methods
- ExecuteChecksAsync(BaseContext)
Runs checks.