Class SlashRequireDirectMessageAttribute
- Namespace
- DSharpPlus.SlashCommands.Attributes
- Assembly
- DSharpPlus.SlashCommands.dll
Defines that this slash command is only usable within a direct message channel.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class SlashRequireDirectMessageAttribute : SlashCheckBaseAttribute
- Inheritance
-
objectAttributeSlashRequireDirectMessageAttribute
Constructors
- SlashRequireDirectMessageAttribute()
Defines that this command is only usable within a direct message channel.
Methods
- ExecuteChecksAsync(InteractionContext)
Runs checks.