{"id":20641838,"url":"https://github.com/nicolasmf/discord.js-poll","last_synced_at":"2025-04-16T01:37:13.080Z","repository":{"id":37590016,"uuid":"359413667","full_name":"nicolasmf/discord.js-poll","owner":"nicolasmf","description":"A poll command package for JS discord bots","archived":false,"fork":false,"pushed_at":"2022-06-19T16:52:31.000Z","size":13624,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T03:32:08.358Z","etag":null,"topics":["discord","discord-bot","discord-js"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicolasmf.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-19T10:09:22.000Z","updated_at":"2024-04-08T09:03:45.000Z","dependencies_parsed_at":"2022-09-07T07:00:53.078Z","dependency_job_id":null,"html_url":"https://github.com/nicolasmf/discord.js-poll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasmf%2Fdiscord.js-poll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasmf%2Fdiscord.js-poll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasmf%2Fdiscord.js-poll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicolasmf%2Fdiscord.js-poll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicolasmf","download_url":"https://codeload.github.com/nicolasmf/discord.js-poll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249182784,"owners_count":21226123,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discord-js"],"created_at":"2024-11-16T16:06:51.719Z","updated_at":"2025-04-16T01:37:13.061Z","avatar_url":"https://github.com/nicolasmf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord.js-poll\n\n![npm](https://img.shields.io/npm/v/discord.js-poll)\n![NPM](https://img.shields.io/npm/l/discord.js-poll)\n![npm](https://img.shields.io/npm/dt/discord.js-poll)\n\ndiscord.js-poll is a Node.js module that allows you to create polls with your discord bot. You can customize the separator (between the title and the options) and the color of the embed.\n\n## Installation \n\n\n```\nnpm i discord.js-poll\n```\n\n## Parameters type\n\n```JavaScript\npoll(message: Discord.Message, args: string[], separator: string, embedColor: Discord.ColorResolvable)\n```\n### Documentation \n\n[Discord.Message](https://discord.js.org/#/docs/main/stable/class/Message)\n\n[Discord.ColorResolvable](https://discord.js.org/#/docs/main/stable/typedef/ColorResolvable)\n\n\n## Usage example\n\n### Code\n\n```JavaScript\nconst Discord = require('discord.js');\nconst { poll } = require('discord.js-poll');\n\nmodule.exports = {\n\tname: 'poll',\n\tdescription: 'Create a poll',\n\tusage: 'Title + Option 1 + Option 2 + Option 3 + etc',\n\texecute(client, message, args) {\n\t\tpoll(message, args, '+', '#00D1CD');\n\t},\n};\n```\n\n### On discord\n\n```\n!poll Is this a poll ?\n```\n\nThis will return an embed message with '**Is this a poll ?**' as title and with 👍 and 👎 reactions.\n\n![Simple Poll Image](https://cdn.discordapp.com/attachments/417731712135725066/834428865342472212/unknown.png)\n\n\n```\n!poll What is your favorite food ? + Pasta + Burgers + Pizza\n```\n\nThis will return an embed message with '**What is your favorite food ?**' as title and '*Pasta*', '*Burger*' and '*Pizza*' as fields, with corresponding reactions (🇦 =\u003e 🇨).\n\n(If **'+'** is chosed as separator)\n\n![Poll Image](https://cdn.discordapp.com/attachments/417731712135725066/834428463616229456/unknown.png)\n\n### ⚠️ You cannot add more than 26 options to the poll. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasmf%2Fdiscord.js-poll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicolasmf%2Fdiscord.js-poll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicolasmf%2Fdiscord.js-poll/lists"}