forge.timers
    Preparing search index...

    Function migrateTimers

    • Moves every stored timer from one backend to the other. First copies, second reads the copy back, and only then drops the original.

      Parameters

      • client: ForgeClient

        The client both extensions are loaded on.

      • from: TimerStorage

        The backend to move timers out of.

      • to: TimerStorage

        The backend to move them into.

      • keepSource: boolean = false

        Whether to leave the originals behind instead of dropping them.

      Returns Promise<IMigrationResult | null>

      What was moved, or null if the source could not be opened.