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​
Type | Name |
---|---|
Discord.Commands.ICommandContext | context |
System.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​
System.Threading.Tasks.Task<Discord.Commands.ParseResult>
Parameters​
Type | Name |
---|---|
Discord.Commands.ICommandContext | context |
Discord.Commands.SearchResult | searchResult |
Discord.Commands.PreconditionResult | preconditionResult |
System.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​
System.Threading.Tasks.Task<Discord.Commands.IResult>
Parameters​
Type | Name |
---|---|
Discord.Commands.ICommandContext | context |
System.Collections.Generic.IEnumerable<System.Object> | argList |
System.Collections.Generic.IEnumerable<System.Object> | paramList |
System.IServiceProvider | services |
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​
Type | Name |
---|---|
Discord.Commands.ICommandContext | context |
Discord.Commands.ParseResult | parseResult |
System.IServiceProvider | services |