Triangle.js Docs
    Preparing search index...

    Interface Ban

    A single entry of a user's banlist.

    interface Ban {
        context?: { chat?: string[] };
        expires: string;
        from: string & {} | "account" | "ip";
        id: string;
        reason: string;
        shortid?: string;
        ts: string;
        type: string & {} | "silence" | "restrict" | "block";
    }
    Index
    context?: { chat?: string[] }

    The chat messages that led to the ban, if the ban was issued over chat.

    expires: string

    When the ban expires (date string). TETR.IO represents permanent bans as an absurdly distant date.

    from: string & {} | "account" | "ip"

    What was banned - your account, or the IP you connected from.

    id: string
    reason: string
    shortid?: string

    Present on newer bans; displayed to the user in place of id.

    ts: string

    When the ban was issued (date string)

    type: string & {} | "silence" | "restrict" | "block"