UNPKG

discord-inv

Version:

Get more information about a discord invitation link!

12 lines (11 loc) 337 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InviteFetchError = void 0; class InviteFetchError extends Error { constructor(data) { super(`Error: ${data.message}`); this.code = data.code; this.message = data.message; } } exports.InviteFetchError = InviteFetchError;