Skip to main content

RequestManager

Manages the requests to the API

Index

Constructors

Properties

Methods

Constructors

publicconstructor

Properties

publicbaseApiUrl

baseApiUrl: string

The base url of the hypixel API

publicclient

client: Client

The hypixel.ts client instance

Methods

publicexecute

  • execute<T>(path: string, sendAPIKey: boolean): Promise<T>
  • Makes the api request and pushes it to the request queue


    Type parameters

    • T

    Parameters

    • path: string

      The path/endpoint to make the request to

    • sendAPIKey: boolean

      Whether or not to send the apiKey with this request

    Returns Promise<T>