Class CommandBuilder
Commands are text-based commands that can be invoked by users in a chat by sending a message, typically starting with a prefix.
public class CommandBuilder : ICommandBuilder
- Inheritance
-
CommandBuilder
- Implements
- Inherited Members
Constructors
CommandBuilder(IEnumerable<string>, Delegate)
Commands are text-based commands that can be invoked by users in a chat by sending a message, typically starting with a prefix.
public CommandBuilder(IEnumerable<string> aliases, Delegate handler)
Parameters
aliasesIEnumerable<string>Aliases of the command. handlerDelegateHandler that represents the body of the command.
Properties
Aliases
Aliases of the command.
public IEnumerable<string> Aliases { get; }
Property Value
Handler
Handler that represents the body of the command.
public Delegate Handler { get; }
Property Value
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; set; }
Property Value
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.
public CommandBuilder WithPriority(int priority)
Parameters
priorityint