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.

31 lines 1.09 kB
"use strict"; /* * SPDX-License-Identifier: GPL-3.0-or-later * Copyright © 2025 BotForge */ 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: "$pollAnswerVoterIDs", version: "1.5.0", description: "Can only be used in poll events, returns the vote user ids of this poll answer", unwrap: true, brackets: false, args: [ { name: "separator", description: "The separator to use for every id", rest: false, type: structures_1.ArgType.String } ], output: (0, array_1.default)(), execute(ctx, [sep]) { return this.success(ctx.states?.poll?.new?.fetchVoters().then(x => x.map(x => x.id).join(sep ?? ", "))); }, }); //# sourceMappingURL=pollAnswerVoterIDs.js.map