UNPKG

forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

39 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$footer", version: "1.0.0", description: "Adds an embed footer", unwrap: true, args: [ { name: "text", description: "The text for the embed footer", required: true, type: structures_1.ArgType.String, rest: false, }, { name: "url", description: "The url for the embed footer", type: structures_1.ArgType.String, rest: false, }, { name: "index", description: "The index to add this data to", rest: false, type: structures_1.ArgType.Number, }, ], brackets: true, execute(ctx, [text, iconURL, index]) { ctx.container.embed(index ?? 0).setFooter({ text, iconURL: iconURL || undefined, }); return this.success(); }, }); //# sourceMappingURL=footer.js.map