Socket
Socket
Sign inDemoInstall

discord-polls

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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


Version published
Maintainers
1
Weekly downloads
6
decreased by-50%

Weekly downloads

Readme

Source

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

Discord server

discord-polls picture

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.

Keywords

FAQs

Last updated on 30 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc