2using System.Threading.Tasks;
21 public abstract string Name {
get; }
36 public virtual Task
Execute(
ChatState State,
string[] Arguments,
string OrgMessage,
object Details,
39 return this.
Execute(State, Arguments, OrgMessage, ResponseCallback);
58 public virtual bool AppliesTo(
string CommandLine,
string[] Arguments, out
object Details)
61 return Arguments.Length == 0;
An administrative command with no parameters.
virtual HelpItem[] GetHelp()
Gets help about the command.
virtual string[] Aliases
Optional set of aliases. Can be null.
virtual bool AppliesTo(string CommandLine, string[] Arguments, out object Details)
If the command is applicable to the given command line.
abstract string[] HelpParagraphs
Markdown description of syntax.
abstract string Name
Command name
virtual Task Execute(ChatState State, string[] Arguments, string OrgMessage, object Details, ResponseCallbackHandler ResponseCallback)
Executes the command.
abstract Task Execute(ChatState State, string[] Arguments, string OrgMessage, ResponseCallbackHandler ResponseCallback)
Executes the command.
CommandNoParameters()
An administrative command with no parameters.
Contains an item of information about a command.
Basic interface for administration commands
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.