Struct CommandMatch
Assembly: Revolt.Net.Commands.dll​
View Source​
Declaration
public struct CommandMatch
Properties​
Command​
The command that matches the search result.
View Source​
Declaration
public readonly CommandInfo Command { get; }
Alias​
The alias of the command.
View Source​
Declaration
public readonly string Alias { get; }
Methods​
CheckPreconditionsAsync(ICommandContext, IServiceProvider)​
View Source​
Declaration
public Task<PreconditionResult> CheckPreconditionsAsync(ICommandContext context, IServiceProvider services = null)
Returns​
Task<Revolt.Commands.Results.PreconditionResult>
Parameters​
| Type | Name |
|---|---|
| Revolt.Commands.ICommandContext | context |
IServiceProvider | services |
ParseAsync(ICommandContext, SearchResult, PreconditionResult, IServiceProvider)​
View Source​
Declaration
public Task<ParseResult> ParseAsync(ICommandContext context, SearchResult searchResult, PreconditionResult preconditionResult = null, IServiceProvider services = null)
Returns​
Task<Revolt.Commands.Results.ParseResult>
Parameters​
| Type | Name |
|---|---|
| Revolt.Commands.ICommandContext | context |
| Revolt.Commands.Results.SearchResult | searchResult |
| Revolt.Commands.Results.PreconditionResult | preconditionResult |
IServiceProvider | services |
ExecuteAsync(ICommandContext, IEnumerable<Object>, IEnumerable<Object>, IServiceProvider)​
View Source​
Declaration
public Task<IResult> ExecuteAsync(ICommandContext context, IEnumerable<object> argList, IEnumerable<object> paramList, IServiceProvider services)
Returns​
Task<Revolt.Commands.Results.IResult>
Parameters​
| Type | Name |
|---|---|
| Revolt.Commands.ICommandContext | context |
IEnumerable<System.Object> | argList |
IEnumerable<System.Object> | paramList |
IServiceProvider | services |
ExecuteAsync(ICommandContext, ParseResult, IServiceProvider)​
View Source​
Declaration
public Task<IResult> ExecuteAsync(ICommandContext context, ParseResult parseResult, IServiceProvider services)
Returns​
Task<Revolt.Commands.Results.IResult>
Parameters​
| Type | Name |
|---|---|
| Revolt.Commands.ICommandContext | context |
| Revolt.Commands.Results.ParseResult | parseResult |
IServiceProvider | services |