Table of Contents

Interface ICommandBuilder

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.

public interface ICommandBuilder

Properties

Aliases

Aliases of the command.

IEnumerable<string> Aliases { get; }

Property Value

IEnumerable<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.

int Priority { get; set; }

Property Value

int

Methods

WithPriority(int)

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.

ICommandBuilder WithPriority(int priority)

Parameters

priority int

Returns

ICommandBuilder