Skip to main content

Struct CommandMatch

Assembly: Discord.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​

System.Threading.Tasks.Task<Discord.Commands.PreconditionResult>

Parameters​
TypeName
Discord.Commands.ICommandContextcontext
System.IServiceProviderservices

ParseAsync(ICommandContext, SearchResult, PreconditionResult, IServiceProvider)​

View Source​
Declaration
public Task<ParseResult> ParseAsync(ICommandContext context, SearchResult searchResult, PreconditionResult preconditionResult = null, IServiceProvider services = null)
Returns​

System.Threading.Tasks.Task<Discord.Commands.ParseResult>

Parameters​
TypeName
Discord.Commands.ICommandContextcontext
Discord.Commands.SearchResultsearchResult
Discord.Commands.PreconditionResultpreconditionResult
System.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​

System.Threading.Tasks.Task<Discord.Commands.IResult>

Parameters​
TypeName
Discord.Commands.ICommandContextcontext
System.Collections.Generic.IEnumerable<System.Object>argList
System.Collections.Generic.IEnumerable<System.Object>paramList
System.IServiceProviderservices

ExecuteAsync(ICommandContext, ParseResult, IServiceProvider)​

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

System.Threading.Tasks.Task<Discord.Commands.IResult>

Parameters​
TypeName
Discord.Commands.ICommandContextcontext
Discord.Commands.ParseResultparseResult
System.IServiceProviderservices