Body, Mind & Soul — API Reference
    Preparing search index...

    Function onMoveToken

    • moveToken hook handler. When a hitched token moves, queue its followers for a single batched update per operation. Only the client of the user who made the move acts, and hitch follow writes are ignored so they cannot cascade.

      Parameters

      • doc: TokenDocument

        The token that moved.

      • movement: object

        The movement operation. Uses origin and destination.

      • operation: object

        The update operation. Shared by all tokens moved in one update.

      • user: User

        The user who requested the update.

      Returns Promise<void>