Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RequestHandler

Hierarchy

  • RequestHandler

Implements

Index

Constructors

constructor

Properties

globalBlock

globalBlock: boolean

latencyRef

latencyRef: LatencyRef

options

ratelimits

ratelimits: {}

Type declaration

readyQueue

readyQueue: (() => void)[]

userAgent

userAgent: string

Methods

globalUnblock

  • globalUnblock(): void
  • Returns void

request

  • request(method: RequestMethod, url: string, auth?: boolean, body?: {}, file?: FileContent, _route?: string, short?: boolean): Promise<unknown>
  • Parameters

    • method: RequestMethod
    • url: string
    • Optional auth: boolean
    • Optional body: {}
      • [s: string]: unknown
    • Optional file: FileContent
    • Optional _route: string
    • Optional short: boolean

    Returns Promise<unknown>

routefy

  • Parameters

    Returns string

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

Generated using TypeDoc