Class RequireDirectMessageAttribute
Defines that a command is only usable within a direct message channel.
Namespace: DSharpPlus.CommandsNext.Attributes
Assembly: cs.temp.dll.dll
Syntax
public sealed class RequireDirectMessageAttribute : CheckBaseAttribute
Constructors
RequireDirectMessageAttribute()
Defines that this command is only usable within a direct message channel.
Declaration
public RequireDirectMessageAttribute()
Methods
ExecuteCheckAsync(CommandContext, Boolean)
Declaration
public override Task<bool> ExecuteCheckAsync(CommandContext ctx, bool help)
Parameters
Type | Name | Description |
---|---|---|
CommandContext | ctx | |
System.Boolean | help |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> |