forge.timers
    Preparing search index...

    Function snapshotVars

    • Writes a timer's variables down so a restart can hand them back. Whatever a function left in them travels - strings, numbers, arrays, plain objects, and the tagged dates, maps, sets, regexps and bigints that $js or another extension may have put there. Functions, class instances and live discord structures cannot survive a restart, so they are dropped and named in the log instead.

      Parameters

      • runtime: {
            environment?: Record<string, unknown>;
            keywords?: Record<string, unknown>;
            localFunctions?: Record<string, ILocalFunctionData>;
        }

        The variables to write down.

      • label: string

        What to call this timer in that log.

      Returns IPersistedVars