UNPKG

@evolvejs/core

Version:

An advanced Discord API wrapper with TS and JS support

12 lines (11 loc) 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class DiscordRejection extends Error { constructor(struct) { super(); this.name = "DiscordRejection"; this.message = `API call rejected with status ${struct === null || struct === void 0 ? void 0 : struct.http}. Message: ${struct === null || struct === void 0 ? void 0 : struct.msg}. Endpoint path: ${struct === null || struct === void 0 ? void 0 : struct.path}. Code: ${struct === null || struct === void 0 ? void 0 : struct.code}`; this.raw = struct; } } exports.default = DiscordRejection;