Function setKV

  • Sets 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

    Parameters

    • userId: string

      The user ID to fetch the data for

    • key: string

      The key to fetch the data for

    • value: any

      The value to set

    • apiKey: string

      The API key to use

    Returns Promise<void>

Generated using TypeDoc