import { RESTManager } from "https://deno.land/x/harmony@v2.7.0/mod.ts";
An easier to use interface for interacting with Discord REST API.
Properties
Methods
delete(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a DELETE Request to API
get(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a GET Request to API
make(): Promise<any>
method: RequestMethods,
url: string,
body?: unknown,
_maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a Request to Discord API.
patch(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a PATCH Request to API
post(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a POST Request to API
put(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a PUT Request to API
request<T = any>(): Promise<T>
method: RequestMethods,
path: string,
options?: RequestOptions,
resolveBucket(url: string): string
setTimeout(fn: (...args: unknown[]) => unknown, ms: number): number
Properties
Methods
delete(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a DELETE Request to API
get(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a GET Request to API
make(): Promise<any>
method: RequestMethods,
url: string,
body?: unknown,
_maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a Request to Discord API.
patch(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a PATCH Request to API
post(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a POST Request to API
put(): Promise<any>
url: string,
body?: unknown,
maxRetries?,
bucket?: string | null,
rawResponse?: boolean,
options?: RequestOptions,
Makes a PUT Request to API
request<T = any>(): Promise<T>
method: RequestMethods,
path: string,
options?: RequestOptions,
resolveBucket(url: string): string
setTimeout(fn: (...args: unknown[]) => unknown, ms: number): number