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

    Function canHitchTokens

    • Decide whether a user may hitch or unhitch a set of tokens. GMs may act on any token. Other users may act only when they own every token in the set.

      Parameters

      • user: User

        The user asking to hitch.

      • tokenDocs: TokenDocument[]

        The tokens to hitch or unhitch. Must not be empty.

      Returns boolean

      true if the user is allowed, false otherwise (including when tokenDocs is empty).