Class ComponentCommandInfo
Represents the info class of an attribute based method for handling Component Interaction events.
Implements
Inherited Members
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public class ComponentCommandInfo : CommandInfo<ComponentCommandParameterInfo>, ICommandInfo
Properties
| Improve this Doc View SourceParameters
Gets a collection of the parameters of this command.
Declaration
public override IReadOnlyList<ComponentCommandParameterInfo> Parameters { get; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ComponentCommandParameterInfo> |
Overrides
Discord.Interactions.CommandInfo<Discord.Interactions.ComponentCommandParameterInfo>.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.ComponentCommandParameterInfo>.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.ComponentCommandParameterInfo>.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.ComponentCommandParameterInfo>.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.ComponentCommandParameterInfo>.InvokeModuleEvent(Discord.IInteractionContext, Discord.Interactions.IResult)
|
Improve this Doc
View Source
ParseArgumentsAsync(IInteractionContext, IServiceProvider)
Declaration
protected override async 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.ComponentCommandParameterInfo>.ParseArgumentsAsync(Discord.IInteractionContext, IServiceProvider)