Table of Contents

Class CommandAttribute

Namespace
NetCord.Services.Commands
Assembly
NetCord.Services.dll

Commands are text-based commands that can be invoked by users in a chat by sending a message, typically starting with a prefix.

[AttributeUsage(AttributeTargets.Method)]
public class CommandAttribute : Attribute
Inheritance
CommandAttribute
Inherited Members

Constructors

CommandAttribute(params string[])

Commands are text-based commands that can be invoked by users in a chat by sending a message, typically starting with a prefix.

public CommandAttribute(params string[] aliases)

Parameters

aliases string[]
Aliases of the command.

Properties

Aliases

Aliases of the command.

public string[] Aliases { get; }

Property Value

string[]

Priority

Priority of the command. Commands are matched in order of descending priority, and the first command that matches the input is executed. Higher values indicate higher priority.

public int Priority { get; init; }

Property Value

int