Table of Contents

Class RequirePrefixesAttribute

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

Defines that usage of this command is only allowed with specific prefixes.

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

Constructors

RequirePrefixesAttribute(params string[])

Defines that usage of this command is only allowed with specific prefixes.

Properties

Prefixes

Gets the array of prefixes with which execution of this command is allowed.

ShowInHelp

Gets or sets default help behaviour for this check. When this is enabled, invoking help without matching prefix will show the commands.

Defaults to false.

Methods

ExecuteCheckAsync(CommandContext, bool)

Executes the a check.