Table of Contents

Class RequireDirectMessageAttribute

Namespace
DisCatSharp.CommandsNext.Attributes
Assembly
DisCatSharp.CommandsNext.dll

Defines that a command is only usable within a direct message channel.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = false)]
public sealed class RequireDirectMessageAttribute : CheckBaseAttribute
Inheritance
RequireDirectMessageAttribute
Inherited Members

Constructors

RequireDirectMessageAttribute()

Defines that this command is only usable within a direct message channel.

Methods

ExecuteCheckAsync(CommandContext, bool)

Executes the a check.