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.

40 lines 1.25 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const structures_1 = require("../structures"); exports.default = new structures_1.NativeFunction({ name: "$getMessageReactionCount", version: "1.0.0", description: "Gets the amount of users that have reacted to a specific emoji", unwrap: true, brackets: true, args: [ { name: "channel ID", description: "The channel the message is located", rest: false, required: true, type: structures_1.ArgType.Channel, check: (i) => i.isTextBased(), }, { name: "message ID", description: "The message to get emoji count from", rest: false, type: structures_1.ArgType.Message, pointer: 0, required: true, }, { name: "emoji", description: "The emoji to get its user count", required: true, pointer: 1, rest: false, type: structures_1.ArgType.Reaction, }, ], execute(_, [, , reaction]) { return this.success(reaction.count); }, }); //# sourceMappingURL=getMessageReactionCount.js.map