solara-testing-beta
Version:
A modern, customizable, and lightweight Discord framework.
21 lines • 712 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const discord_js_1 = require("discord.js");
exports.default = {
name: 'footer',
execute: async (ctx) => {
if (!ctx.embed) {
ctx.embed = new discord_js_1.EmbedBuilder();
}
if (ctx.args.length < 1) {
throw new Error('footer requires at least 1 argument: text');
}
const text = ctx.args[0];
const iconURL = ctx.args[1];
if (!text || text.trim() === '')
throw new Error('Footer text cannot be empty.');
ctx.embed.setFooter({ text: text.substring(0, 2048), iconURL });
return '';
},
};
//# sourceMappingURL=footer.js.map