Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/harmony/src/rest/mod.ts>RESTOptions

An easy to use Discord API Library for Deno.
Go to Latest
interface RESTOptions
import { type RESTOptions } from "https://deno.land/x/harmony@v2.6.0/src/rest/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)