wowkit API
    Preparing search index...

    Interface World

    interface World {
        chat: string[];
        frames: FakeFrame[];
        proxySettings: ProxySettings;
        sounds: number[];
        state: ClientState;
        advance(seconds: number): void;
        findFrame(matches: (frame: FakeFrame) => boolean): FakeFrame | undefined;
        fire(event: string, ...args: unknown[]): void;
        getSavedSettings(): Record<string, unknown> | undefined;
        glowAlphasOn(button: number): number[];
        glowsOn(button: number): number;
        makeAura(
            name: string,
            spellId: number,
            secondsLeft: number,
            sourceUnit?: string,
        ): FakeAura;
        notice(): string;
        setOption(name: string, value: unknown): void;
    }
    Index
    chat: string[]

    The lines the addon printed to the chat window.

    frames: FakeFrame[]
    proxySettings: ProxySettings

    The checkboxes and dropdowns the addon put in the Settings panel, by variable name.

    sounds: number[]

    The sounds the addon played.

    The character, its spells, bars, auras, party and bags; change it and the addon sees the change.

    • Moves time forward; timers and the addon's regular tick run on the way.

      Parameters

      • seconds: number

      Returns void

    • A game event, delivered to every frame that listens for it.

      Parameters

      • event: string
      • ...args: unknown[]

      Returns void

    • What the addon keeps in the character's saved variables.

      Returns Record<string, unknown> | undefined

    • The opacity of the glows showing on action button 1..12 (a glow faded by a hidden value is 0 or 1).

      Parameters

      • button: number

      Returns number[]

    • How many glows are showing on action button 1..12.

      Parameters

      • button: number

      Returns number

    • A buff that lasts secondsLeft more seconds from now.

      Parameters

      • name: string
      • spellId: number
      • secondsLeft: number
      • OptionalsourceUnit: string

      Returns FakeAura

    • The text of the notice at the top of the screen; empty when it is not showing.

      Returns string

    • Sets a checkbox or dropdown of the options page, the way the player's click does: "showWeapon", "buff_InnerFire".

      Parameters

      • name: string
      • value: unknown

      Returns void