discord-polls
v1.1.1
Published
discord-polls is a powerfull npm package that lets you make a quick poll message in a channel. Based on discord.js-poll-embed
Downloads
28
Maintainers
Readme
discord-polls
discord-polls is a powerfull npm package that lets you make a quick poll message in a channel. Based on discord.js-poll-embed
DISCLAIMER:
Out of the box, this package will work discord.js v14. If you want the v13 version then check [Using discord.js v13]. (not currently available)
discord-polls is a powerfull npm package that lets you make a quick poll message in a channel. Based on discord.js-poll-embed.
If you need help feel free to join our discord server to talk and get help.
If you encounter any of issues fell free to open an issue in our github repository.
📁 | Download & Update
You can download it from npm:
npm install discord-polls
You can update to a newer version to receive updates using npm.
npm update discord-polls
Changelog
- 30 Sept, 2022 (v1.1.1) - Added test folder.
- 30 Sept, 2022 (v1.1.0) - Added getResult method.
- 30 Sept, 2022 (v1.0.0) - Added startPoll method.
Setting Up
First things first, we include the module into the project.
const Polls = require("discord-polls");
Then, we call the methods for creating the polls.
Polls.startPoll(...);
📝 | Examples
Examples can be found in /test
Methods
startPoll
Starts a new poll.
Polls.startPoll(<Interaction - Discord.Interaction>, <Title - String>, <Choices - Array>, <Duration - Number>, <EmbedColor - String>, <EmojiList - Array>, <ForceEndPollEmoji - String>);
- Output:
Discord.Message
getResult
Gets the result of a poll.
Polls.getResult(<ID - String>, <Interaction - Discord.Interaction>);
- Output:
Promise<Object>
Have fun and happy discussions! Made with ❤ by Abdelrahman.