Table of Contents

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 IInteractionContext

Execution context that will be injected into the module class.

args object[]

Method arguments array.

serviceProvider IServiceProvider

Service collection for initializing the module.

commandInfo ICommandInfo

Command info class of the executed method.

Returns

Task

A task representing the execution operation.