@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
23 lines (20 loc) • 790 B
JavaScript
;
var UserError_cjs = require('./UserError.cjs');
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var _ArgumentError = class _ArgumentError extends UserError_cjs.UserError {
constructor(options) {
super({ ...options, identifier: options.identifier ?? options.argument.name });
this.argument = options.argument;
this.parameter = options.parameter;
}
// eslint-disable-next-line @typescript-eslint/class-literal-property-style
get name() {
return "ArgumentError";
}
};
__name(_ArgumentError, "ArgumentError");
var ArgumentError = _ArgumentError;
exports.ArgumentError = ArgumentError;
//# sourceMappingURL=ArgumentError.cjs.map
//# sourceMappingURL=ArgumentError.cjs.map