Skip to content

Resolvable

The Resolvable class manages the scheduling of HTTP tasks. It allows for the addition, removal, and execution of tasks at a specified frequency.

Properties

The Resolvable instance has no set properties!

Methods

headers

Resolvable : headers ()  -> {
      {… [string]: string …}    }

Returns a dictionary of headers this resolvable requires in order to successfuly be processed by the Discord API

resolve

Resolvable : resolve ()  -> any

Resolves the data that this Resolvable has, for instance - if this data is JSON, it will be thrown through the EventIn pre-processor.

update

Resolvable : update ()  -> any

Allows mutation of the data held in the resolvable

Functions

new

Resolvable . new (

     threadCount: number?
)  -> ()

Creates a new instance of Resolvable.