Table of Contents

Struct CommandMatch

Namespace
Discord.Commands
Assembly
Discord.Net.Commands.dll
public struct CommandMatch
Inherited Members

Constructors

CommandMatch(CommandInfo, string)

public CommandMatch(CommandInfo command, string alias)

Parameters

command CommandInfo
alias string

Properties

Alias

The alias of the command.

public readonly string Alias { get; }

Property Value

string

Command

The command that matches the search result.

public readonly CommandInfo Command { get; }

Property Value

CommandInfo

Methods

CheckPreconditionsAsync(ICommandContext, IServiceProvider)

public Task<PreconditionResult> CheckPreconditionsAsync(ICommandContext context, IServiceProvider services = null)

Parameters

context ICommandContext
services IServiceProvider

Returns

Task<PreconditionResult>

ExecuteAsync(ICommandContext, ParseResult, IServiceProvider)

public Task<IResult> ExecuteAsync(ICommandContext context, ParseResult parseResult, IServiceProvider services)

Parameters

context ICommandContext
parseResult ParseResult
services IServiceProvider

Returns

Task<IResult>

ExecuteAsync(ICommandContext, IEnumerable<object>, IEnumerable<object>, IServiceProvider)

public Task<IResult> ExecuteAsync(ICommandContext context, IEnumerable<object> argList, IEnumerable<object> paramList, IServiceProvider services)

Parameters

context ICommandContext
argList IEnumerable<object>
paramList IEnumerable<object>
services IServiceProvider

Returns

Task<IResult>

ParseAsync(ICommandContext, SearchResult, PreconditionResult, IServiceProvider)

public Task<ParseResult> ParseAsync(ICommandContext context, SearchResult searchResult, PreconditionResult preconditionResult = null, IServiceProvider services = null)

Parameters

context ICommandContext
searchResult SearchResult
preconditionResult PreconditionResult
services IServiceProvider

Returns

Task<ParseResult>