Skip to main content

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​
TypeName
Revolt.Commands.ICommandContextcontext
IServiceProviderservices

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​
TypeName
Revolt.Commands.ICommandContextcontext
Revolt.Commands.Results.SearchResultsearchResult
Revolt.Commands.Results.PreconditionResultpreconditionResult
IServiceProviderservices

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​
TypeName
Revolt.Commands.ICommandContextcontext
IEnumerable<System.Object>argList
IEnumerable<System.Object>paramList
IServiceProviderservices

ExecuteAsync(ICommandContext, ParseResult, IServiceProvider)​

View Source​
Declaration
public Task<IResult> ExecuteAsync(ICommandContext context, ParseResult parseResult, IServiceProvider services)
Returns​

Task<Revolt.Commands.Results.IResult>

Parameters​
TypeName
Revolt.Commands.ICommandContextcontext
Revolt.Commands.Results.ParseResultparseResult
IServiceProviderservices