Delegate ExecuteCallback
- Namespace
- Discord.Interactions
- Assembly
- Discord.Net.Interactions.dll
Represents a cached method execution delegate.
public delegate Task ExecuteCallback(IInteractionContext context, object[] args, IServiceProvider serviceProvider, ICommandInfo commandInfo)
Parameters
context
IInteractionContextExecution context that will be injected into the module class.
args
object[]Method arguments array.
serviceProvider
IServiceProviderService collection for initializing the module.
commandInfo
ICommandInfoCommand info class of the executed method.
Returns
- Task
A task representing the execution operation.