Triangle.js Docs
    Preparing search index...

    Interface Ribbon

    interface Ribbon {
        err: any;
        error: any;
        kick: { reason: string };
        nope: { reason: string };
        notify:
            | string
            | {
                bgcolor?: `#${string}`;
                buttons?: { classes?: string; icon?: string; label: string }[];
                classes?: string;
                color?: `#${string}`;
                fcolor?: `#${string}`;
                header?: string;
                icon?: string;
                id?: string;
                msg: string;
                subcolor?: `#${string}`;
                subicon?: string;
                timeout?: number;
            }
            | { msg: string; type: "err"
            | "warn"
            | "ok"
            | "announce" }
            | { msg: string; timeout?: number; type: "deny" };
        packets: { packets: Buffer[] };
        ping: { recvid: number };
        rejected: void;
        "server.announcement": {
            msg: string;
            reason?: string;
            ts: number;
            type: String | "maintenance";
        };
        "server.authorize": {
            maintenance: boolean;
            social: {
                notifications: Notification[];
                presences: {
                    [userId: string]: {
                        detail: string;
                        invitable: boolean;
                        status: string;
                    };
                };
                relationships: Types.Social.Relationship[];
                total_online: number;
            };
            success: boolean;
            worker: { flag: string; name: string };
        };
        "server.maintenance": Record<string, unknown>;
        "server.migrate": { endpoint: string; flag: string; name: string };
        "server.migrated": Record<string, unknown>;
        session: { ribbonid: string; tokenid: string };
    }
    Index

    Properties

    err: any
    error: any
    kick: { reason: string }
    nope: { reason: string }
    notify:
        | string
        | {
            bgcolor?: `#${string}`;
            buttons?: { classes?: string; icon?: string; label: string }[];
            classes?: string;
            color?: `#${string}`;
            fcolor?: `#${string}`;
            header?: string;
            icon?: string;
            id?: string;
            msg: string;
            subcolor?: `#${string}`;
            subicon?: string;
            timeout?: number;
        }
        | { msg: string; type: "err"
        | "warn"
        | "ok"
        | "announce" }
        | { msg: string; timeout?: number; type: "deny" }
    packets: { packets: Buffer[] }
    ping: { recvid: number }
    rejected: void
    "server.announcement": {
        msg: string;
        reason?: string;
        ts: number;
        type: String | "maintenance";
    }
    "server.authorize": {
        maintenance: boolean;
        social: {
            notifications: Notification[];
            presences: {
                [userId: string]: {
                    detail: string;
                    invitable: boolean;
                    status: string;
                };
            };
            relationships: Types.Social.Relationship[];
            total_online: number;
        };
        success: boolean;
        worker: { flag: string; name: string };
    }
    "server.maintenance": Record<string, unknown>
    "server.migrate": { endpoint: string; flag: string; name: string }
    "server.migrated": Record<string, unknown>
    session: { ribbonid: string; tokenid: string }