@nortex/handler
Version:
The easy to use, all-in-one command and event handler.
14 lines (13 loc) • 479 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.GuildID = void 0;
const Command_1 = require("../../structures/Command");
const GuildID = (guildId) => (target) => {
if (!(target.prototype instanceof Command_1.Command)) {
throw new TypeError("The @GuildIDs decorator can only be used on Command classes.");
}
Object.defineProperty(target.prototype, "guildId", {
value: guildId,
});
};
exports.GuildID = GuildID;