Skip to content

HTTPOptions ​

typedef · Source

HTTP options Type: Object

Properties ​

version ​

optional

version: number

API version to use

Default: 10

agent ​

optional

agent: ProxyAgentOptions

ProxyAgent options

Default: {}

tls ​

optional

tls: TLSOptions

TLS options for REST connections

Default: {}

api ​

optional

api: string

Base URL of the API

Default: 'https://discord.com/api'

cdn ​

optional

cdn: string

Base URL of the CDN

Default: 'https://cdn.discordapp.com'

invite ​

optional

invite: string

Base URL of invites

Default: 'https://discord.gg'

template ​

optional

template: string

Base URL of templates

Default: 'https://discord.new'

headers ​

optional

headers: Object

Additional headers to send for all API requests

scheduledEvent ​

optional

scheduledEvent: string

Base URL of guild scheduled events

Default: 'https://discord.com/events'

Unofficial software. Not affiliated with or supported by Discord.