Struct CommandMatch
public struct CommandMatch
- Inherited Members
Constructors
CommandMatch(CommandInfo, string)
public CommandMatch(CommandInfo command, string alias)
Parameters
command
CommandInfoalias
string
Properties
Alias
The alias of the command.
public readonly string Alias { get; }
Property Value
Command
The command that matches the search result.
public readonly CommandInfo Command { get; }
Property Value
Methods
CheckPreconditionsAsync(ICommandContext, IServiceProvider)
public Task<PreconditionResult> CheckPreconditionsAsync(ICommandContext context, IServiceProvider services = null)
Parameters
context
ICommandContextservices
IServiceProvider
Returns
ExecuteAsync(ICommandContext, ParseResult, IServiceProvider)
public Task<IResult> ExecuteAsync(ICommandContext context, ParseResult parseResult, IServiceProvider services)
Parameters
context
ICommandContextparseResult
ParseResultservices
IServiceProvider
Returns
ExecuteAsync(ICommandContext, IEnumerable<object>, IEnumerable<object>, IServiceProvider)
public Task<IResult> ExecuteAsync(ICommandContext context, IEnumerable<object> argList, IEnumerable<object> paramList, IServiceProvider services)
Parameters
context
ICommandContextargList
IEnumerable<object>paramList
IEnumerable<object>services
IServiceProvider
Returns
ParseAsync(ICommandContext, SearchResult, PreconditionResult, IServiceProvider)
public Task<ParseResult> ParseAsync(ICommandContext context, SearchResult searchResult, PreconditionResult preconditionResult = null, IServiceProvider services = null)
Parameters
context
ICommandContextsearchResult
SearchResultpreconditionResult
PreconditionResultservices
IServiceProvider