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

x/denocordts/src/errors/mod.ts>DiscordAPIError

An Object Oriented Discord API wrapper for Deno.
Latest
class DiscordAPIError
extends Error
import { DiscordAPIError } from "https://deno.land/x/denocordts@1.2.0/src/errors/mod.ts";

Constructors

new
DiscordAPIError(
code: number | string,
status: number,
method: string,
url: string,
bodyData: any,
)

Properties

readonly
name: string

The name of the error

requestBody: RequestBody

Static Methods

private
flattenDiscordError(obj: DiscordError, key?): IterableIterator<string>