@sapphire/framework
Version:
Discord bot framework built for advanced and amazing bots.
24 lines (21 loc) • 660 B
JavaScript
;
var __defProp = Object.defineProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
// src/lib/utils/application-commands/compute-differences/option/required.ts
function* checkOptionRequired({
oldRequired,
newRequired,
key
}) {
if ((oldRequired ?? false) !== (newRequired ?? false)) {
yield {
key,
original: String(oldRequired ?? false),
expected: String(newRequired ?? false)
};
}
}
__name(checkOptionRequired, "checkOptionRequired");
exports.checkOptionRequired = checkOptionRequired;
//# sourceMappingURL=required.cjs.map
//# sourceMappingURL=required.cjs.map