Class RequireDirectMessageAttribute
- Namespace
- DSharpPlus.CommandsNext.Attributes
- Assembly
- DSharpPlus.CommandsNext.dll
Defines that a command is only usable within a direct message channel.
public sealed class RequireDirectMessageAttribute : CheckBaseAttribute
- Inheritance
-
objectAttributeRequireDirectMessageAttribute
Constructors
- RequireDirectMessageAttribute()
Defines that this command is only usable within a direct message channel.
Methods
- ExecuteCheckAsync(CommandContext, bool)
Asynchronously checks whether this command can be executed within given context.