@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
24 lines (22 loc) • 645 B
JavaScript
import { __name } from '../../chunk-PAWJFY3S.mjs';
// 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;
export { UserError };
//# sourceMappingURL=UserError.mjs.map
//# sourceMappingURL=UserError.mjs.map