Skip to main content
Module

x/harmony/mod.ts>RESTOptions

An easy to use Discord API Library for Deno.
Latest
interface RESTOptions
Re-export
import { type RESTOptions } from "https://deno.land/x/harmony@v2.9.0/mod.ts";

Properties

optional
token: string | (() => string | undefined)

Token to use for authorization

optional
headers: Record<string, string>

Headers to patch with if any

optional
canary: boolean

Whether to use Canary instance of Discord API or not

optional
version: 6 | 7 | 8

Discord REST API version to use

optional
tokenType: TokenType

Token Type to use for Authorization

optional
userAgent: string

User Agent to use (Header)

optional
client: Client

Optional Harmony client

optional
requestTimeout: number

Requests Timeout (in MS, default 30s)

optional
retryLimit: number

Retry Limit (default 1)