UNPKG

@tryforge/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.

33 lines 1.09 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$unsuppressEmbeds", version: "1.5.0", description: "Unsuppresses embeds on a message, returns bool", brackets: false, unwrap: true, args: [ { name: "channel ID", description: "The channel to pull message from", rest: false, required: true, type: structures_1.ArgType.Channel, check: (i) => i.isTextBased() }, { name: "message ID", description: "The message to unsuppress embeds on", rest: false, required: true, pointer: 0, type: structures_1.ArgType.Message } ], output: structures_1.ArgType.Boolean, async execute(ctx, [, message]) { return this.success(!!(await (message ?? ctx.message)?.suppressEmbeds(false).catch(ctx.noop))); }, }); //# sourceMappingURL=unsuppressEmbeds.js.map