Class AutocompleteCommandInfo
Represents the info class of an attribute based method for handling Autocomplete Interaction events.
Implements
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public sealed class AutocompleteCommandInfo : CommandInfo<CommandParameterInfo>, ICommandInfo
Properties
| Improve this Doc View SourceCommandName
Gets the name of the target command.
Declaration
public string CommandName { get; }
Property Value
Type | Description |
---|---|
String |
ParameterName
Gets the name of the target parameter.
Declaration
public string ParameterName { get; }
Property Value
Type | Description |
---|---|
String |
Parameters
Gets a collection of the parameters of this command.
Declaration
public override IReadOnlyList<CommandParameterInfo> Parameters { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<CommandParameterInfo> |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.Parameters
|
Improve this Doc
View Source
SupportsWildCards
Gets whether this command supports wild card patterns.
Declaration
public override bool SupportsWildCards { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.SupportsWildCards
Methods
| Improve this Doc View SourceExecuteAsync(IInteractionContext, IServiceProvider)
Executes the command with the provided context.
Declaration
public override async Task<IResult> ExecuteAsync(IInteractionContext context, IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | The execution context. |
IServiceProvider | services | Dependencies that will be used to create the module instance. |
Returns
Type | Description |
---|---|
Task<IResult> | A task representing the execution process. The task result contains the execution result. |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.ExecuteAsync(Discord.IInteractionContext, IServiceProvider)
|
Improve this Doc
View Source
GetLogString(IInteractionContext)
Declaration
protected override string GetLogString(IInteractionContext context)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context |
Returns
Type | Description |
---|---|
String |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.GetLogString(Discord.IInteractionContext)
|
Improve this Doc
View Source
InvokeModuleEvent(IInteractionContext, IResult)
Declaration
protected override Task InvokeModuleEvent(IInteractionContext context, IResult result)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | |
IResult | result |
Returns
Type | Description |
---|---|
Task |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.InvokeModuleEvent(Discord.IInteractionContext, Discord.Interactions.IResult)
|
Improve this Doc
View Source
ParseArgumentsAsync(IInteractionContext, IServiceProvider)
Declaration
protected override Task<IResult> ParseArgumentsAsync(IInteractionContext context, IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | |
IServiceProvider | services |
Returns
Type | Description |
---|---|
Task<IResult> |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.CommandParameterInfo>.ParseArgumentsAsync(Discord.IInteractionContext, IServiceProvider)