discord-poll
v15.4.6
Published
A premade poll command with lots of coustamisation for discord.js
Downloads
9
Readme
INSTALLATION
npm i discord-poll
HELP
My discord server: Discord
ABOUT
This discord-poll is a powerful Poll embed creator with lots of different customization.
FEATURES
- Custom embed colour
- Custom embed title
- Custom embed description
- Custom embed footer
- Custom embed image
- Custom embed thumbnail
- Custom prefix
- Custom emoji reaction
IN-DISCORD COMMAND
Without timer : (note: if the timer is preset in the code then it will run the preset's timer)
<prefix>poll
With timer: (note: the timer command overights the code preset's timer.)
<prefix>poll <hour> <minute> <seconds>
e.g. (!poll 0 5 30) this will be a pole for 5 minutes
CODE EXAMPLE
const Discord = require('discord.js')
const client = Discord.Client()
const { poll , pollSettings } = require('discord-poll')
pollSettings.prefix = '<Prefix for the poll command>' //optional
pollSettings.embedColour = '<Hex code>' //optional
pollSettings.embedTitle = '<Title for the embed>' //optional
pollSettings.embedDescription = '<Embeds description>' //required
pollSettings.embedFooter = '<Embed footer>' //optional
pollSettings.image = '<Embed image url>' //optional
pollSettings.firstEmoji = '<emoji>' //optional
pollSettings.secondEmoji = '<emoji>' //optional
pollSettings.embedThumbnail = '<URL>' //optional
poll(client, Discord)