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.

35 lines 1.2 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const array_1 = __importDefault(require("../../functions/array")); const structures_1 = require("../../structures"); exports.default = new structures_1.NativeFunction({ name: "$emojiNames", version: "1.0.0", description: "Returns the emote names of a guild", brackets: false, output: (0, array_1.default)(), args: [ { name: "guild ID", description: "The guild to return the emotes of", rest: false, type: structures_1.ArgType.Guild, required: true, }, { name: "separator", description: "The separator to use for each emoji", rest: false, required: true, type: structures_1.ArgType.String, }, ], unwrap: true, execute(ctx, [guild, sep]) { return this.success((guild ?? ctx.guild)?.emojis.cache.map((x) => x.toString()).join(sep || ", ")); }, }); //# sourceMappingURL=emojiNames.js.map