Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Client

Client for Geometry Dash requests.

Hierarchy

  • Client

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a client for Geometry Dash requests.

    Parameters

    • Optional config: Config

      The configuration for the client.

    Returns Client

Properties

levels

levels: LevelCreator

The database of Geometry Dash levels

users

The database of Geometry Dash users

Methods

req

  • req(url: string, conf: RequestConfig, returnRaw: true): Promise<Response>
  • req(url: string, conf: RequestConfig, returnRaw?: false): Promise<string>
  • Make a request to a Geometry Dash server. It isn't recommended to use this directly, but if there's some section of the Geometry Dash server API that gd.js doesn't provide, this is a good solution.

    Parameters

    • url: string

      The path to request to (based at the {@link Config.dbURL})

    • conf: RequestConfig

      The request configuration

    • returnRaw: true

      Whether to parse the response into a string or return it raw

    Returns Promise<Response>

    The Response containing the Geometry Dash server's response

  • Make a request to a Geometry Dash server.

    Parameters

    • url: string

      The path to request to (based at the {@link Config.dbURL})

    • conf: RequestConfig

      The request configuration

    • Optional returnRaw: false

      Whether to parse the response into a string or return it raw

    Returns Promise<string>

    The string containing the Geometry Dash server's response

Generated using TypeDoc