mwbot-ts - v1.2.7
    Preparing search index...

    Interface MwbotErrorData

    Interface for the MwbotError.data property.

    interface MwbotErrorData {
        axios?: Record<string, any>;
        error?: Record<string, any>;
        invalid?: unknown[];
        keys?: (keyof ConfigData)[];
        modified?: { [index: string]: unknown };
        response?: Record<string, any>;
        title?: string;
        transformed?: unknown;
    }
    Index

    Properties

    axios?: Record<string, any>

    The full Axios response object. Present for api_mwbot errors with a code of http (including specific types such as timeout (408)), empty, or invalidjson.

    error?: Record<string, any>

    Additional properties in the response of a failed API request, excluding code and info.

    invalid?: unknown[]

    Present when a method receives an array parameter (e.g., Mwbot.purge) containing values of incorrect types.

    keys?: (keyof ConfigData)[]

    Present when Mwbot.init fails to initialize certain wg-variables.

    modified?: { [index: string]: unknown }

    Present when a ModificationPredicate returns a value that is neither a string nor null. This property records the index and the corresponding unexpected value encountered.

    response?: Record<string, any>

    Present when the API response includes an error that the framework cannot process.

    title?: string

    Present when the error involves a processed page title, such as in Mwbot.read.

    transformed?: unknown

    Present when the callback return value from Mwbot.edit is invalid.