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
contextIInteractionContextExecution context that will be injected into the module class.
argsobject[]Method arguments array.
serviceProviderIServiceProviderService collection for initializing the module.
commandInfoICommandInfoCommand info class of the executed method.
Returns
- Task
A task representing the execution operation.