interface IRunnable {
    allowTopLevelReturn?: boolean;
    args?: string[];
    client: ForgeClient;
    command: null | BaseCommand<unknown>;
    container?: Container;
    data: IExtendedCompilationResult;
    disableConsoleErrors?: boolean;
    doNotSend?: boolean;
    environment?: Record<string, unknown>;
    extras?: unknown;
    keywords?: Record<string, string>;
    obj: Sendable;
    redirectErrorsToConsole?: boolean;
    states?: States;
}

Properties

allowTopLevelReturn?: boolean
args?: string[]

The args used in the message command

client: ForgeClient

The available discord client

command: null | BaseCommand<unknown>

The command used for this execution

container?: Container

The container reference to use

The compiled data to execute

disableConsoleErrors?: boolean

Removes errors output to console

doNotSend?: boolean

Whether to suppress sending the response to discord.

environment?: Record<string, unknown>

The already existing env variables

extras?: unknown

Extras data

keywords?: Record<string, string>

The already existing variables defined with $let

The context this code will run in

redirectErrorsToConsole?: boolean

Whether to suppress errors from being sent to discord, and be sent to console instead

states?: States

The old and new states of an event

Generated using TypeDoc