Delegate ExecuteCallback
Represents a cached method execution delegate.
Namespace: Discord.Interactions
Assembly: Discord.Net.Interactions.dll
Syntax
public delegate Task ExecuteCallback(IInteractionContext context, object[] args, IServiceProvider serviceProvider, ICommandInfo commandInfo);
Parameters
Type | Name | Description |
---|---|---|
IInteractionContext | context | Execution context that will be injected into the module class. |
Object[] | args | Method arguments array. |
IServiceProvider | serviceProvider | Service collection for initializing the module. |
ICommandInfo | commandInfo | Command info class of the executed method. |
Returns
Type | Description |
---|---|
Task | A task representing the execution operation. |