CustomCommand - v1.0.0
    Preparing search index...

    Type Alias cmdFuncOut

    cmdFuncOut: (
        eventData: ccArg,
    ) =>
        | CustomCommandResult
        | undefined
        | Promise<CustomCommandResult>
        | Promise<undefined>

    represents a command function that can be executed.

    Type declaration

    const myCommand: cmdFuncOut = (eventData) => {
    const {source, args} = eventData
    source.sendMessage(`Hello ${name}`);
    return { status: "success" };
    };