Class ApplicationCommandRequireDirectMessageAttribute
- Namespace
- DisCatSharp.ApplicationCommands.Attributes
- Assembly
- DisCatSharp.ApplicationCommands.dll
Defines that this application command is only usable within a direct message channel.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class ApplicationCommandRequireDirectMessageAttribute : ApplicationCommandCheckBaseAttribute
- Inheritance
-
ApplicationCommandRequireDirectMessageAttribute
- Inherited Members
Constructors
- ApplicationCommandRequireDirectMessageAttribute()
Defines that this command is only usable within a direct message channel.
Methods
- ExecuteChecksAsync(BaseContext)
Runs checks.