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?: MessageFile, _route?: string, short?: boolean): Promise<Record<string, unknown>>
  • Parameters

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

    Returns Promise<Record<string, unknown>>

routefy

  • Parameters

    Returns string

toJSON

  • Parameters

    • Optional props: string[]

    Returns JSONCache

toString

  • toString(): string
  • Returns string

Generated using TypeDoc