UNPKG

@sapphire/framework

Version:

Discord bot framework built for advanced and amazing bots.

27 lines (24 loc) 747 B
'use strict'; var __defProp = Object.defineProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); // src/lib/errors/UserError.ts var _UserError = class _UserError extends Error { /** * Constructs an UserError. * @param options The UserError options */ constructor(options) { super(options.message); this.identifier = options.identifier; this.context = options.context ?? null; } // eslint-disable-next-line @typescript-eslint/class-literal-property-style get name() { return "UserError"; } }; __name(_UserError, "UserError"); var UserError = _UserError; exports.UserError = UserError; //# sourceMappingURL=UserError.cjs.map //# sourceMappingURL=UserError.cjs.map