Function mergeKV

  • Merges the user data KV from the Lanyard API

    Throws

    Error if the request failed

    Throws

    Error if the API key is invalid

    Throws

    Error if the user ID is invalid

    Throws

    Error if the key-value pairs are invalid

    Parameters

    • userId: string

      The user ID to fetch the data for

    • kvPairs: {
          [key: string]: any;
      }

      The key-value pairs to merge

      • [key: string]: any
    • apiKey: string

      The API key to use

    Returns Promise<void>

Generated using TypeDoc