Skip to main content
Version: Next

TaskContextData

TaskContextData

Data structure for creating a task execution context.

This interface contains all the necessary information to create a task context, including the task instance, custom data, and CommandKit instance.

Signature
interface TaskContextData<T extends Record<string, any> = Record<string, any>> {
task: Task;
data: T;
commandkit: CommandKit;
}

task

property

The task instance that is being executed

data

property
T

Custom data passed to the task execution

commandkit

property

The CommandKit instance for accessing bot functionality