RBWCM-SDK Documentation - v1.1.0
    Preparing search index...

    Interface UpdateStatDto

    Data Transfer Object for manually updating a user's statistics.

    interface UpdateStatDto {
        action: "add" | "remove";
        amount?: number;
        forcedElo?: number;
        seasonId: string;
        type: "win" | "lose" | "mvp";
        userId: number;
    }
    Index

    Properties

    action: "add" | "remove"

    Whether to add or remove from the metric.

    amount?: number

    The amount to add/remove (Defaults to 1).

    forcedElo?: number

    Forcefully set the ELO to this specific value, bypassing standard calculations.

    seasonId: string

    The unique identifier of the season.

    type: "win" | "lose" | "mvp"

    The metric to update.

    userId: number

    The internal database ID of the user.