Table of Contents

Class AutocompleteCommandInfo

Namespace
Discord.Interactions
Assembly
Discord.Net.Interactions.dll

Represents the info class of an attribute based method for handling Autocomplete Interaction events.

public sealed class AutocompleteCommandInfo : CommandInfo<CommandParameterInfo>, ICommandInfo
Inheritance
AutocompleteCommandInfo
Implements
Inherited Members

Properties

CommandName

Gets the name of the target command.

public string CommandName { get; }

Property Value

string

ParameterName

Gets the name of the target parameter.

public string ParameterName { get; }

Property Value

string

Parameters

Gets a collection of the parameters of this command.

public override IReadOnlyList<CommandParameterInfo> Parameters { get; }

Property Value

IReadOnlyList<CommandParameterInfo>

SupportsWildCards

Gets whether this command supports wild card patterns.

public override bool SupportsWildCards { get; }

Property Value

bool

Methods

ExecuteAsync(IInteractionContext, IServiceProvider)

Executes the command with the provided context.

public override Task<IResult> ExecuteAsync(IInteractionContext context, IServiceProvider services)

Parameters

context IInteractionContext

The execution context.

services IServiceProvider

Dependencies that will be used to create the module instance.

Returns

Task<IResult>

A task representing the execution process. The task result contains the execution result.

GetLogString(IInteractionContext)

protected override string GetLogString(IInteractionContext context)

Parameters

context IInteractionContext

Returns

string

InvokeModuleEvent(IInteractionContext, IResult)

protected override Task InvokeModuleEvent(IInteractionContext context, IResult result)

Parameters

context IInteractionContext
result IResult

Returns

Task

ParseArgumentsAsync(IInteractionContext, IServiceProvider)

protected override Task<IResult> ParseArgumentsAsync(IInteractionContext context, IServiceProvider services)

Parameters

context IInteractionContext
services IServiceProvider

Returns

Task<IResult>