> From the BotGhost docs: https://botghost.com/docs/community-engagement/polls
> Every page: https://botghost.com/docs/llms.txt

# Polls

Run polls with live results and fair voting rules, and decide where members can post Discord polls. Free for every bot.

Polls lets you ask your server a question and count the answers. Members vote on the poll post, and the results update by themselves. You can run multiple choice polls, yes or no polls, ratings, an opinion scale, and This or that. You choose who can vote, when the results show, and who can see who voted.

The same module also controls Discord's own polls. On the **Members' polls** tab you decide where members can post them. This is what the old Polls Filter module did.

Polls is free for every bot. There's no Premium part, and its runs, variables and stored values don't count toward your free limits.

![The Polls tab for Ghost Hangout with two running polls, each with its number, question, channel, votes, End, Cancel and View, and one poll opened to show a bar for each answer](https://botghost.com/docs/content/assets/workspace/polls-running.png)

*The Polls tab*

- **A** **Start a poll** opens the window where you write a poll.
- **B** A running poll, with its number, question, channel and votes.
- **C** **End** closes the poll and posts its results.
- **D** **Cancel** stops the poll with no results.
- **E** **View** shows the votes so far. On an open poll the button says **Hide**.

## Before you start

You need:

- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- **View Channel** and **Send Messages** for your bot in the channels your polls go in.
- **Create Public Threads** there, if you turn on the discussion thread.

Polls doesn't need the **Message Content** intent, with one exception. **Remove them after they're posted** on the **Members' polls** tab reads members' messages, so it needs the intent. See [Remove mode](https://botghost.com/docs/community-engagement/polls#remove-mode).

## Set up Polls

### Step 1: Turn on Polls

Open **Polls** in your bot's dashboard and press **Enable** at the top right. It adds the poll events, the `/poll` commands, and the custom variables that hold your settings and polls.

![The top of the Polls page with the Docs link, the server menu set to Ghost Hangout, Reset to Default and Enabled, the Undo the move strip, and the Get started strip with Both picked](https://botghost.com/docs/content/assets/workspace/polls-header.png)

- **A** **Enabled** shows the module is on. Before you turn it on, this says **Enable**.
- **B** The server menu picks which server you're setting up.
- **C** **Reset to Default**. See [Each server's own settings](https://botghost.com/docs/community-engagement/polls#each-servers-own-settings).
- **D** **Docs** opens this page.
- **E** **What do you want to do?** in the Get started strip.

### Step 2: Pick your server

Use the server menu at the top of the page. Each server has its own Polls settings, roles, channels and messages.

### Step 3: Pick what you want to do

The Get started strip asks **What do you want to do?**

- **Run polls**: turns the `/poll` commands on and leaves members' Discord polls alone.
- **Control members' polls**: turns the `/poll` commands off and sets [Members' polls](https://botghost.com/docs/community-engagement/polls#members-polls) to **Block them**.
- **Both**: turns the `/poll` commands on and controls members' Discord polls.

The strip then shows your next step, such as **Pick who can start polls** or **Start your first poll**. When everything is done it says **Polls are ready**.

### Step 4: Pick who can start polls

Members with **Manage Server** can always start polls. On the **Setup** tab, pick **Staff roles** to let other people start them, or set **Who can start polls** to **Everyone**.

### Step 5: Save

A bar pops up at the bottom of the page. Press **Save Changes**. Polls you start from the page use your last saved settings, so save before you start one.

![The Unsaved changes bar with Save Changes marked](https://botghost.com/docs/content/assets/workspace/welcomer-save.png)

### Step 6: Start your first poll

On the **Polls** tab, press **Start a poll**, or use `/poll start` in Discord. See [Start a poll](https://botghost.com/docs/community-engagement/polls#start-a-poll).

## Each server's own settings

Polls is set up server by server. When you pick a server in the menu, every setting you see and change is that server's own: its roles, channels, voting rules, look and messages. To set up another server, pick it in the same menu. The menu shows **Set up** or **Not set up yet** beside each server.

**Reset to Default** takes two clicks. It puts the picked server's settings back to how a new Polls starts. The staff roles, the poll channels and the time zone stay.

**Disable** also takes two clicks. It turns Polls off for the whole bot and keeps your settings and polls.

## The tabs

| Tab | What's on it |
| --- | --- |
| **Polls** | Start a poll, and see the running, scheduled and ended polls |
| **Setup** | Who starts polls and where, what a new poll starts with, when a poll ends |
| **Voting** | How people vote, results and privacy, who can vote, extra votes |
| **Messages** | Every message and short line your bot sends |
| **Look** | The layout and bar style of the results, and the charts |
| **Members' polls** | Where members can post Discord's own polls |

The **Setup**, **Voting**, **Messages**, **Look** and **Members' polls** tabs show a Discord preview beside the settings.

## The Polls tab

This tab lists the picked server's polls. Before the first poll it shows one card, **Your polls**, with **Start a poll**. **Refresh** reads the list again.

### Start a poll

Press **Start a poll**. The window works the same as `/poll start` in Discord.

![The Start a poll window with the five type tiles, the question Where should game night go?, the answers Friday, Saturday and Sunday, the channel, Runs for, Kind, How people vote, and the preview of the post on the right](https://botghost.com/docs/content/assets/workspace/polls-start-window.png)

*The Start a poll window*

- **A** **What kind of question is it?** picks the poll's type.
- **B** The **Question** and the **Answers**.
- **C** **Posted in**, **Runs for** and **Pick up to**.
- **D** **Kind** and **How people vote**.
- **E** **More options**.
- **F** **How the post will look**.
- **G** **Start the poll**.

**What kind of question is it?** has five tiles:

| Type | Answers |
| --- | --- |
| **Multiple choice** | Your own answers, 2 to 10 of them |
| **Yes or no** | **Yes and No**, or **Yes, No, and Maybe**. The answers fill in by themselves |
| **Rating** | **1 to 5 stars** or **1 to 10**. The answers fill in, and the results show the average |
| **Opinion scale** | Five answers, from strongly agree to strongly disagree. They fill in by themselves |
| **This or that** | Your own two answers, shown head to head |

Then fill in the rest:

- **Question**: up to 300 characters.
- **Answers**: for **Multiple choice** and **This or that**. Press **Add an answer** for more, up to 10. Each answer can be up to 55 characters, and two answers can't be the same.
- **Posted in**: a text or announcement channel. The window opens on the first of your [poll channels](https://botghost.com/docs/community-engagement/polls#who-starts-polls-and-where).
- **Runs for**: 5 minutes to 90 days. Set it to 0 for no end, and the poll runs until staff end it.
- **Pick up to**: how many answers each member can pick, 1 to 10. Only **Multiple choice** polls show it.
- **Kind**: **Button poll** or **Discord poll**. See [Button polls and Discord polls](https://botghost.com/docs/community-engagement/polls#button-polls-and-discord-polls).
- **How people vote**: **Buttons**, **Numbered** or **Menu**. See [How people vote](https://botghost.com/docs/community-engagement/polls#how-people-vote).

**More options** holds **When results show**, **Who can see who voted**, **Ping a role**, **When it starts** and **Repeat**. Anything you don't change follows the **Setup** and **Voting** tabs.

Press **Start the poll**. If something is missing, the window says what it is beside the button. You can close the window and come back. Your poll is kept while the dashboard is open, and the button on the page says **Continue your poll**. **Clear it** empties the window.

> **Note:** Polls start on your saved bot. If the window says **Save your bot first (the Save bar at the bottom).**, press **Save Changes** and open the window again. Your poll stays there.

### Button polls and Discord polls

A **Button poll** is a message from your bot with buttons or a dropdown under it. Every rule on the page works on it: who can vote, extra votes, hidden results and private votes.

A **Discord poll** is Discord's own poll, posted by your bot. Discord draws it and keeps the votes, so how people vote, when results show and who sees votes are up to Discord. It runs for 1 hour to 32 days. When it ends, your bot reads the result and posts the results the same way as for a button poll.

### Running polls

Each running poll shows its number, question, channel, when it ends and how many votes it has.

- **End** closes the poll now and posts its results.
- **Cancel** stops it with no results. Press **Sure? Cancel it** to confirm. A cancelled poll can't be brought back.
- **View** shows a bar for each answer, with its share and votes, how many members voted, and the winner so far. Who picked each answer shows only when the poll lets staff see it.

A server can have 25 polls running or waiting to start at once.

### Scheduled polls

To start a poll later, open **More options** in the window and set **When it starts** to **At a time**. Pick a day and time within the next 90 days. The time uses the server's [Time zone](https://botghost.com/docs/community-engagement/polls#time-zone). The button then says **Schedule the poll**.

**Repeat** can be **Doesn't repeat**, **Every day** or **Every week**. When a repeating poll closes, the same poll is set to start again the next day or a week later, at the same time of day.

Polls waiting to start are listed under **Starting later**, along with the next one of a repeating poll. **Cancel** stops one from starting. Cancelling a repeating poll also stops its repeats. Ending it doesn't.

In Discord, `/poll start` has a `start_in` option, like `2h` or `1d`.

### Ended polls

Ended and cancelled polls are listed under **Ended polls**, the newest first. The page shows the last 50. **View** shows the final results.

**Download CSV** saves the polls on the page as a file, with one row for each answer: the poll's number, question, kind, status, start and end, the answer, its votes and share, and the voters. Voters are included only for polls that let staff see who voted.

Ended polls are kept for 90 days to start with. You can change this under [When a poll ends](https://botghost.com/docs/community-engagement/polls#when-a-poll-ends).

## Setup

### Who starts polls and where

The card is called **Who starts polls, and where**.

- **Who can start polls**: **Staff** (to start with) or **Everyone**. Staff are members with a staff role or **Manage Server**. Staff can also edit, end and cancel polls.
- **Running polls each member can have**: shows when **Everyone** is picked. 1 to 10, and it starts at 1. Staff aren't limited by it.
- **Staff roles**: the roles that count as poll staff. Leave it empty and only members with **Manage Server** are staff.
- **Channels polls can go in**: leave it empty and polls can go in any channel your bot can post in. The **Start a poll** window opens on the first channel in the list.

### What a new poll starts with

These are used for anything left out when a poll is started.

- **Type of poll**: **Multiple choice** to start with.
- **Kind**: **Button poll** to start with.
- **Runs for**: 1 day to start with. 5 minutes to 90 days, or 0 for no end. A Discord poll runs for 1 hour to 32 days.
- **Ping a role**: the role is pinged in a line under each new poll. Empty means nobody.
- **Open a discussion thread on each poll**: off to start with. The thread is named after the question. Your bot needs **Create Public Threads** in the channel.

### The answers each type fills in

The card is called **Answers that fill in by themselves**. Yes or no polls, ratings and the opinion scale come with their answers, so nobody has to type them. Pick a set under **Which answers to change** (**Yes, no, maybe**, **1 to 5 stars**, **1 to 10** or **Opinion scale**) and change its words. You could translate them, or turn "5 stars" into "Loved it".

A box you leave empty uses the words it started with. Ratings go from the lowest to the highest, and the average counts the answers as 1, 2, 3 and so on.

### When a poll ends

- **Post a last call before it closes**: 1 hour before, to start with. Your bot posts a reminder in the poll's channel with a link to vote. Set it to 0 for none. The longest is 7 days.
- **Close early after**: closes a button poll once this many members have voted. 0 (to start with) keeps it open until its time is up.
- **Post the results when it closes**: on to start with. The results go up as a new message, with the [chart](https://botghost.com/docs/community-engagement/polls#results-chart) when that's on. With it off, the poll post still shows its final results.
- **Results channel**: where the results post goes. Leave it empty to use the poll's own channel.
- **Keep ended polls for**: 7 to 365 days. It starts at 90. After that the poll and its votes are deleted from the dashboard. Its messages in Discord stay.

When a button poll closes, its post changes to the closed look: the final results, the winner, and only the **Results** button.

### Time zone

Polls that start at a time you pick, and polls that repeat, go by this time zone. It's UTC until you pick one.

## Voting

A button poll copies these rules when it starts, so a running poll keeps the rules it started with. Changes apply to new polls. Discord polls work the way Discord does them.

### How people vote

![The Voting tab with the How people vote card: the Buttons, Numbered and Menu tiles, Each member picks up to 1 answer and three switches, beside a Discord preview of the poll post with answer buttons, Results and Voters](https://botghost.com/docs/content/assets/workspace/polls-voting.png)

*How people vote, with the poll post beside it*

- **A** **What members press**: **Buttons**, **Numbered** or **Menu**.
- **B** **Each member picks up to**.
- **C** The three switches.
- **D** The poll post as members see it, with the answer buttons, **Results** and **Voters**.

**What members press** has three choices:

- **Buttons** (to start with): each answer is its own button. Best for short answers.
- **Numbered**: the answers are listed with numbers, and there's a small button for each number. Best for long answers.
- **Menu**: one dropdown lists every answer. Members can tick several when the poll allows it.

The other settings on the card:

- **Each member picks up to**: 1 to 10 answers, and it starts at 1. This is for multiple choice polls. Every other type is always one answer each.
- **Members can change their vote**: on to start with. Picking another answer moves their vote to it. On a poll with several picks, they take one back first.
- **Members can take their vote back**: on to start with. Picking the same answer again takes the vote back.
- **Members can add answers**: off to start with. It puts an **Add an answer** button on multiple choice polls, up to 10 answers. Anyone can press it.

After each vote, only the voter sees a reply that says what happened. The post updates at most once every 5 seconds, however fast the votes come in.

### Results and privacy

**When results show**:

- **Live on the post** (to start with): the post updates as votes come in.
- **After they vote**: members see the results in their private reply, once they've voted.
- **When the poll ends**: the post says the results show when the poll ends.

Staff can always see the bars with `/poll results`, even while they're hidden.

**Who can see who voted**:

- **Only staff** (to start with): staff press **Voters** to see who picked what. Members never see it.
- **Everyone**: anyone can press **Voters**.
- **Nobody**: there's no **Voters** button, and who voted is deleted when the poll closes. Only the counts are kept.

Each poll post says who can see who voted. A Discord poll always shows who voted, because Discord does.

### Who can vote

These are checked on every vote. With nothing set, everyone can vote.

- **Only these roles can vote**: leave it empty and everyone can.
- **These roles can't vote**: they can't vote even with a role that can.
- **In the server for at least**: a number of days. 0 means any.
- **Discord account at least**: a number of days old. 0 means any.

A member who can't vote gets a private reply that says why. For the last two, it also says when they can try again.

### Extra votes

The card is called **Extra votes for roles**. Members with the roles you pick count as more than one vote.

- **These roles** and **Count as**: 2 to 10 votes. It starts at 2.
- **And these roles** and **Count as**: 2 to 10 votes. It starts at 3. A member with roles from both lists counts as the second number.

The post doesn't say that some votes count extra. If members should know, add a line to the poll post on the **Messages** tab.

## Messages

The **Messages** tab holds everything your bot says. **Which messages** splits it into four parts: **The post**, **When people vote**, **Results** and **Staff and commands**.

Each message has its own card. Change the text on the card, or press **Edit message** to open the [Message Builder](https://botghost.com/docs/custom-commands-and-events/message-builder). **Fills in** lists the variables that message can use, and you can click one to copy it. The short lines are plain text boxes.

On free bots, a small **Made with BotGhost** line shows under about one in three of the module's messages. Premium bots don't show it.

### The post

| Message | When it's sent |
| --- | --- |
| **When a poll goes up** | The poll post. Your bot puts the answers and its buttons under it |
| **When a poll closes** | The post changes to this when the poll ends. Only **Results** stays |
| **When a poll pings its role** | A line under the post that pings the role, when a role to ping is set |
| **When a poll is about to close** | The last call, in the poll's channel |
| **The line posted with a Discord poll** | A plain message with Discord's own poll. Empty to start with, because the poll carries the question |

### Buttons on the post

The answers are the poll's own. This card changes the words on the rest: **Results button**, **Voters button**, **Add an answer button** and **The dropdown, before a pick**.

### Words on the post

The short lines the post fills in, such as `1 vote`, `Pick up to {poll_picks}`, `Ends {poll_ends_relative}` and `Only staff can see who voted`. Change the wording or translate them. Keep the parts in curly brackets, because your bot puts the numbers there.

### When people vote

Only the voter sees these replies.

| Message | When it's sent |
| --- | --- |
| **When someone votes** | After a vote is saved |
| **When someone ticks several answers** | After several answers are ticked at once in the Menu |
| **When someone moves their vote** | After a vote moves to another answer |
| **When someone takes their vote back** | After a vote is taken back |
| **When someone has used all their picks** | When they try to pick more answers than the poll allows |
| **When someone can't vote** | With the reason from the next card |
| **When someone votes on a closed poll** | After the poll has closed |
| **When someone adds an answer** | After the **Add an answer** button |

### Why someone can't vote

One line for each reason. It fills in `{poll_reason}` in **When someone can't vote**. The reasons are: they don't have a voting role, one of their roles can't vote, they joined too recently, their account is too new, they picked the same answer again, they can't change their vote, and the answer is full.

### Other lines when someone votes

The lines for a second press that came too soon, a vote that couldn't be saved, someone who can't see who voted, and `{poll_my_votes}` with no votes left.

### The results messages

This part of the tab is called **Results**.

| Message | When it's sent |
| --- | --- |
| **When a poll's results are posted** | A new message in the poll's channel or the results channel, with the chart when it's on |
| **When someone asks for the results** | The **Results** button and `/poll results`. Only they see it |
| **When someone asks who voted** | The **Voters** button. Only they see it, and only when the poll lets them |

### Words in the results

The winner line, the line for a tie, the word between tied answers, a rating's average, a rating's most picked answer, and what shows when nobody voted or the poll was cancelled.

### Staff and command replies

This part of the tab is called **Staff and commands**. Only the person who used the command sees these.

| Message | When it's sent |
| --- | --- |
| **While /poll start is starting a poll** | The first answer to `/poll start`. It changes a moment later |
| **When someone starts a poll** | Once the poll is up, with a link |
| **When something can't be done** | With the reason, from the cards below it |
| **When staff end a poll** | After `/poll end` |
| **When staff cancel a poll** | After `/poll cancel` |
| **When staff edit a poll** | After `/poll edit` |
| **When someone runs /poll list** | After `/poll list` |

### The lines in /poll list

One line for each running poll, with an end or without one, and the line for when no polls are running. They fill in `{poll_list}`.

### Why a poll can't start

One line for each reason a poll can't start, such as no question, fewer than 2 answers, a channel that isn't one of the poll channels, or 25 polls already running. Each fills in `{poll_problem}` in **When something can't be done**.

### Why a poll can't be changed

One line for each reason a poll can't be ended, cancelled or edited, or can't take a new answer. Each fills in `{poll_problem}` too.

### The forms

`/poll start` without a question opens a form. The **Add an answer** button opens a second one. This card changes their titles, box names and examples. Titles and box names can be up to 45 characters, and examples up to 100.

### Message variables

| Variable | What it shows |
| --- | --- |
| `{server}` | The server's name |
| `{poll_number}` | The poll's number, like 12 |
| `{poll_question}` | The question |
| `{poll_results}` | One line per answer with its bar, share and votes, or that results show later |
| `{poll_total}` | How many votes, counting extra votes |
| `{poll_total_text}` | "36 votes" or "1 vote" |
| `{poll_voters_count}` | How many members voted |
| `{poll_picks}` | How many answers each member can pick |
| `{poll_picks_text}` | "Pick 1" or "Pick up to 3" |
| `{poll_ends_relative}` | When it ends, like "in 2 days" |
| `{poll_ends_date}` | When it ends, as a date and time |
| `{poll_ends_text}` | "Ends in 2 days", "No end time" or "Closed" |
| `{poll_votes_seen_text}` | Who can see who voted, in words |
| `{poll_winner}` | The winning answer, or every tied answer |
| `{poll_winner_votes}` | The winner's votes |
| `{poll_winner_text}` | "Friday won with 21 votes", a tie, or that nobody voted |
| `{poll_average}` | A rating's average, like 4.2. Empty on other polls |
| `{poll_out_of}` | A rating's highest answer, like 5. Empty on other polls |
| `{poll_host}` | Who started it, as a mention |
| `{poll_channel}` | The poll's channel, as a mention |
| `{poll_url}` | A link to the poll post |
| `{poll_kind}` | "Button poll" or "Discord poll" |
| `{poll_answer}` | The answer they picked (private replies) |
| `{poll_answer_old}` | The answer they moved their vote from (private replies) |
| `{poll_my_results}` | The results, when they show after voting (private replies) |
| `{poll_my_votes}` | Every answer they have a vote on now (private replies) |
| `{poll_reason}` | Why they can't vote |
| `{poll_vote_roles}` | The roles that can vote, as mentions |
| `{poll_try_again}` | When they can try again, like "in 3 days" |
| `{poll_voters}` | Who picked each answer, as mentions (the **Voters** button) |
| `{poll_list}` | The polls running in this server, one per line (`/poll list`) |
| `{poll_problem}` | What went wrong, in words |
| `{poll_ping}` | The role pinged when a poll goes up, as a mention |
| `{poll_pairs}` | "Answer: votes" lines, for the chart |

Each card's **Fills in** line shows which of these its message gets. When a poll was started from the dashboard or by a repeat, `{poll_host}` says "the server". You can change those words under **Words on the post**.

## Look

### How results look

This sets how results look on the post, in replies and on the results post. A running poll keeps the look it started with. Discord draws its own polls, so for those this only changes the results post.

**Layout**:

- **Bar under each answer** (to start with): the usual look.
- **One line each**: shorter, for polls with many answers.
- **Numbers only**: only the share and the votes.
- **Head to head**: one bar for two answers. With more answers, it's the usual look. **This or that** polls are always head to head.

**Bar style** has 16 styles, from **Blocks** (to start with) to **Hearts**. **Rainbow** gives each answer its own colour. Each tile shows real bars, so you can see a style before you pick it.

### Results chart

A picture on the results post when a poll closes. It's drawn once. **Add the chart to the results post** is on to start with.

![The Results chart card on the Look tab with Add the chart to the results post on, a donut chart preview, and Pick a design opened to show the poll chart designs such as Bold bars, Pop pie and Podium](https://botghost.com/docs/content/assets/workspace/polls-chart-design.png)

*The Results chart card with the design picker open*

- **A** **Add the chart to the results post**.
- **B** The chart with the design you picked.
- **C** **Pick a design** opens the ready made designs.
- **D** **Edit in Card Studio**.

**Pick a design** shows 12 ready made poll charts. It starts on **Poll results**, a donut with the total in the middle. Some designs suit one kind of poll, and their description says so: **Head to head (2 answers)**, **Podium (top 3)** and **Rating (stars or numbers)**. **Edit in Card Studio** opens the design in [Card Studio](https://botghost.com/docs/custom-commands-and-events/card-studio), where you can change it or make your own.

### Chart on the poll

The card is called **Chart on the poll itself**. **Add a chart to the poll post** puts a picture on the poll post while it runs. The chart updates at most once a minute. It's off to start with, because the bars on the post already show the results. It has its own design, picked the same way.

## Members' polls

The **Members' polls** tab decides where members can post Discord's own polls. If you used the old Polls Filter module, this is where it lives now.

![The Members' polls tab with How set to Block them (recommended), Where set to Only these channels with #general and #announcements picked, Who set to Everyone, the Staff are never stopped switch, and the Channels it's applied to card with Apply now](https://botghost.com/docs/content/assets/workspace/polls-members.png)

*The Members' polls tab*

- **A** **How**: **Off**, **Block them (recommended)** or **Remove them after they're posted**.
- **B** **Where**, with its channels.
- **C** **Who**, and **Staff are never stopped**.
- **D** **Channels it's applied to**, with **Apply now**.

**How** has three choices:

- **Off** (to start with): members can post Discord polls wherever Discord lets them.
- **Block them (recommended)**: turns off Discord's **Create Polls** permission in the channels you pick, so members never get the poll button there. Your bot doesn't read any messages. It needs **Manage Channels** and **Manage Roles**. If it's missing one, the page tells you and the tab shows **Bot permissions**.
- **Remove them after they're posted**: deletes a member's poll once it's posted, with a warning. It needs the **Message Content** intent. See [Remove mode](https://botghost.com/docs/community-engagement/polls#remove-mode).

Server owners and members with **Administrator** are never stopped by Discord.

### Where and who

The card is called **Where, and for whom**. It shows once **How** isn't **Off**.

- **Where**: **Every channel** (to start with), **Only these channels** or **Every channel except these**.
- **Who**: **Everyone** (to start with), **Only these roles** or **Everyone except these roles**.
- **Staff are never stopped**: on to start with. With **Block them**, your poll [staff roles](https://botghost.com/docs/community-engagement/polls#who-starts-polls-and-where) keep **Create Polls**. With **Remove them after they're posted**, polls from members with **Manage Messages** or a poll staff role are left alone.

### Applying the rules

With **Block them**, the card **Channels it's applied to** shows how many channels the rules were last applied to, and when.

Saving applies the rules to each channel. **Apply now** does it again, for example after you add channels. The button shows once your changes are saved. If the rules cover every channel, or every channel except some, your bot also applies them to new channels as they're created.

When you turn the rule off, or change it to cover fewer channels, your bot puts **Create Polls** back to its default in the channels it had changed.

### Remove mode

With **Remove them after they're posted**, the card **When a member posts a poll** sets what happens:

- **Delete the poll**: on to start with. With it off, your bot only warns them.
- **Warn them in the channel**: on to start with. **Delete the warning after** starts at 10 seconds and can be up to 1 hour. Set it to 0 and the warning stays.
- **Send them a private message**: off to start with. Members with DMs closed don't get it.
- **Time them out**: off to start with. **For** starts at 10 minutes and can be 1 minute to 28 days. Your bot needs **Timeout Members**.

> **Warning:** Remove mode reads members' messages, so your bot needs the **Message Content** intent. Turn it on in the Discord Developer Portal, under **Bot**. **Block them** needs no message reading.

Your bot needs **Manage Messages** in those channels to delete members' polls.

### Members' polls messages

In remove mode, two more cards show on the tab:

| Message | When it's sent |
| --- | --- |
| **When a member's poll is removed** | The warning in the channel |
| **When a member's poll is removed (DM)** | The private message to the member |

Both can use `{user}`, `{channel}` and `{server}`.

## Commands

| Command | What it does |
| --- | --- |
| `/poll start` | Starts a poll. Leave `question` out and a form opens |
| `/poll end` | Ends the poll with that number now and posts its results |
| `/poll results` | Shows a poll's results so far. Only you see them |
| `/poll list` | Shows the polls running in this server, with links. Only you see it |
| `/poll edit` | Changes a button poll that hasn't closed: a new `question`, an answer to add, or a new `length` from now |
| `/poll cancel` | Stops a poll without posting results. Set `delete_post` to delete its post too |

The post says the poll's number, like **Poll #12**. Use that number for `poll` in the commands.

`/poll end`, `/poll edit` and `/poll cancel` are for poll staff: members with **Manage Server** or one of your [staff roles](https://botghost.com/docs/community-engagement/polls#who-starts-polls-and-where). `/poll start` is for poll staff too, unless **Who can start polls** is **Everyone**. Anyone can use `/poll results` and `/poll list`.

`/poll start` has these options. All of them are optional, and anything you leave out follows the **Setup** and **Voting** tabs.

| Option | What it's for |
| --- | --- |
| `question` | The question |
| `answers` | Your own answers. Leave it out for yes or no, a rating or the opinion scale |
| `type` | What kind of question it is |
| `length` | How long it runs, like `30m`, `2h` or `2d` |
| `channel` | Where to post it. This channel if left out |
| `kind` | **Button poll** or **Discord poll** |
| `vote` | How members vote on a button poll |
| `picks` | How many answers each member can pick (multiple choice) |
| `who_voted` | Who can see who voted |
| `results` | When the results show |
| `role` | A role to ping |
| `start_in` | Start it later, like `2h` or `1d` |

Put a `|` between your answers, like `Friday | Saturday`.

The form asks for the question, the answers (one per line) and how long it runs. It leaves the answers out when the type comes with its own.

Under **The poll commands**, click `/poll` to see its subcommands. Press **Edit** on one to open it in the builder, or use its switch to turn it off. If your bot already has another `/poll` command, the page tells you. Discord can't have both, so rename one or turn it off.

## Events

Polls is made of ordinary builder blocks. You can open its events under **The poll events** and add your own blocks.

| Event | What it does |
| --- | --- |
| **Start a Poll** | Checks and numbers a new poll, saves it, and posts it or waits for its start time |
| **Update the Post** | Draws the poll: its first post, each edit after a vote, the closed look, the results post and the last call |
| **Cast a Vote** | Runs on every vote. Checks the rules, then saves, moves or takes back the vote |
| **Close a Poll** | Ends or cancels a poll, posts the results, and starts the next one when it repeats |
| **Discord Poll Ended** | Closes a Discord poll the module posted, once Discord ends it |
| **Add an Answer** | Adds an answer to a running multiple choice button poll |
| **Edit a Poll** | Changes a button poll's question or end, or adds an answer |
| **Apply Members' Rules** | Block mode: changes **Create Polls** in the channels the rule covers |
| **New Channel** | Applies the members' poll rule to a new channel |
| **Member Posted a Poll** | Remove mode. It's off unless remove mode is picked |
| **Hourly Check** | Closes polls and starts scheduled polls your bot missed, and deletes polls kept past their days |
| **Check Staff** | Works out whether a member is poll staff. Keep it on |
| **Website Action** | Runs when a server admin uses the Polls tools on your BotPanel website |

Press **Open in builder** to open an event. The blocks read your settings from the page, so changing a setting doesn't change the events. **Show variable names** shows the variable behind each setting.

To run something of your own each time a poll closes, add your blocks to the end of **Close a Poll**. They can use `{poll_winner}`, `{poll_winner_text}`, `{poll_results}` and `{poll_total}`.

If you change an event in the builder, it says **Changed by you**. To go back to the original, press **Put it back how it was** twice, then save. This removes your changes to that event.

### Updating Polls

When there's a new version, **Update** shows at the top of the page. Press it, then press **Save Changes**. Your settings and polls stay. If you changed an event or command in the builder, it keeps your blocks and doesn't get the new ones.

## BotPanel

You can put Polls on your bot's [BotPanel](https://botghost.com/docs/botpanel) website. Server admins can then change these for their own server:

- **Setup**, **Voting**, **Messages** and **Look**: the same settings and messages as on your dashboard. For the charts they pick from the ready made designs. Designs you made in Card Studio stay on your Polls page.
- **Members' polls**: the rules for members' Discord polls, with **Apply now**. To turn on **Block them** or press **Apply now**, the admin needs **Manage Channels** and **Manage Roles** in that server.

The website can also have a **Polls** page. It lists the server's running, scheduled and ended polls with their results, and has **Start a poll**, **Edit a running poll**, **End**, **Cancel** and a CSV download. Who voted shows only for polls that let staff or everyone see it. The page is off on a new website. Turn it on under [Pages](https://botghost.com/docs/botpanel/server-dashboard/look#pages).

**Remove them after they're posted** makes your bot read messages, so server admins can't pick it until you allow it. On your **Members' polls** tab, turn on **Server admins can pick Remove them on your website**. Turn on **Message Content** in the Discord Developer Portal first.

The commands and events stay on your dashboard. You choose which settings admins see in [Modules](https://botghost.com/docs/botpanel/server-dashboard/modules). Your [BotPanel plan](https://botghost.com/docs/botpanel/plans) decides which servers can open the server dashboard.

## Moving from the old Polls and Polls Filter

The old **Polls** and **Polls Filter** modules both move into this one. While either is still on, a strip under the header says **Polls (old) and Polls Filter (old) are still on**, or names the one that's on. Nothing moves until you choose to move it. If you press **Enable** while an old module is on, the same window opens.

![The Polls page with the strip Polls (old) and Polls Filter (old) are still on and Move my settings, and the window Move from Polls (old) with Polls Filter (old) listing each old setting and what it becomes](https://botghost.com/docs/content/assets/workspace/polls-move.png)

*The Move strip and the window that shows what moves*

- **A** The strip under the header, with **Move my settings**.
- **B** A part for each old module, with a row for each old setting and what it becomes.
- **C** The notes about what changes or can't move.
- **D** **Cancel** and **Move my settings**.

1. Press **Move my settings** on the strip. The window **Move from Polls (old) with Polls Filter (old)** lists every old setting and what it becomes. Nothing changes yet. Press **Cancel** to leave everything as it is.
2. Press **Move my settings** in the window. When it's done, it says **Moved. Save your bot to finish.**
3. Press **Close**, then **Save Changes**. The old modules are switched off by the save. They keep their settings.

What moves from the old Polls:

| Old setting | After the move |
| --- | --- |
| **Manager roles** | **Staff roles** on the **Setup** tab |
| **Whitelisted channels** | **Channels polls can go in** on the **Setup** tab |
| **Blacklisted roles** | **These roles can't vote** on the **Voting** tab |
| **Single choice** | On: members pick 1 answer. Off: members pick up to 10 |
| **Embed title**, **Embed footer**, **Embed color** | Go onto the poll post if you had changed them. Old defaults don't move |
| **Show poster's name** | A **Started by** line, when the post is rebuilt with your title, footer or colour |
| **Choice reactions** | Don't move. Answers are buttons now |
| `/poll-create` and `/poll-end` | Replaced by `/poll start`, `/poll end` and the rest of `/poll` |

What moves from the old Polls Filter:

| Old setting | After the move |
| --- | --- |
| The filter being on | **Members' polls** set to **Remove them after they're posted** |
| **Channels** and **Roles** restrictions | **Where** and **Who**, with the same channels and roles. The move keeps what the old filter really did. The window explains each one |
| **Delete message** | **Delete the poll** |
| **Timeout user** and its length | **Time them out** and **For**, up to 28 days |
| **Send a message when the filter is triggered** | **Warn them in the channel**, with your words and how long the warning stays |
| **Send a DM when the filter is triggered** | **Send them a private message**, with your words |

The old filter removed staff's polls too, so **Staff are never stopped** is off after the move. Turn it on if staff should be able to post polls. Remove mode still needs the **Message Content** intent, as the old filter did. Once you've moved, think about switching to **Block them**: members then never get to post the poll.

Roles and channels go into the server they belong to. Everything else becomes the starting settings for every server. If a server's roles or channels can't be read, nothing is moved and the window says why. Wait a moment and try again.

Polls that the old module already posted stay where they are, with their reactions. Once the old Polls is off, single choice is no longer enforced on them and `/poll-end` can't end them.

If only the old Polls Filter was on and the new Polls wasn't, the move switches the `/poll` commands off and sets Get started to **Control members' polls**. Pick **Both** there if you want to run polls too.

For 30 days, the strip shows **Undo the move**. It turns the old modules back on and the new one off, and the old modules still have all their settings. Press **Save Changes** after you undo. If the new Polls was already on before the move, it stays on.

## A few ideas

| What you want | How to set it up |
| --- | --- |
| A vote on the next game night | **Multiple choice** with Friday, Saturday and Sunday, **Runs for** 2 days |
| A fair staff vote | **When results show** on **When the poll ends**, and **Who can see who voted** on **Nobody** |
| Feedback after an event | **Rating**, **1 to 5 stars**. The results show the average |
| A weekly check-in | **Opinion scale**, **When it starts** on **At a time**, and **Repeat** on **Every week** |
| Members' Discord polls only in one channel | **Members' polls** on **Block them**, **Where** on **Every channel except these**, and pick that channel |

Vez starts a poll in `#polls` for Ghost Hangout: "Where should game night go?" with Friday, Saturday and Sunday. Tom presses **Friday** and gets a private reply that his vote is saved. The post now shows Friday's bar with 1 vote. Two days later the poll closes, the post changes to its closed look, and the results go up with a chart.

## Good to know

- A running poll keeps the voting rules, the way to vote and the look it started with. Changes on the page apply to new polls.
- An hourly check closes polls and starts scheduled polls that your bot missed while it was offline.
- If a poll's post is deleted, the poll still closes and posts its results.
- `/poll edit` works on button polls that haven't closed. A Discord poll can't be changed.
- Only multiple choice polls can get new answers.
- The preview beside the settings follows the tab you have open, and the type a new poll starts with.

## Every limit

| What | Limit |
| --- | --- |
| Answers on a poll | 2 to 10 |
| Question | 300 characters |
| An answer | 55 characters |
| A button poll's length | 5 minutes to 90 days, or no end |
| A Discord poll's length | 1 hour to 32 days |
| Starting later | Within 90 days |
| Polls running or waiting in a server | 25 |
| Running polls each member can have | 1 to 10, while **Everyone** can start polls |
| Picks each member has | 1 to 10 |
| Extra votes for a role | 2 to 10 |
| Votes on one answer | About 40,000 |
| Last call before it closes | Up to 7 days before |
| Keep ended polls for | 7 to 365 days |
| Edits to the post | At most one every 5 seconds |
| The chart on the poll | Drawn at most once a minute |
| Ended polls shown on the page | The last 50 |
| A timeout in remove mode | 1 minute to 28 days |
| The warning in remove mode | Deleted after up to 1 hour, or kept |

## Common questions

**My poll didn't go up**

Check that your bot is online and can post in that channel, that Polls is on, and that you saved. If you set **Channels polls can go in**, the poll's channel must be one of them. A server can have 25 polls running or waiting, so end one if you're at the limit. In Discord, the private reply to `/poll start` says what stopped it.

**The Start the poll button is greyed out**

The line beside it says what's missing: a question, an answer, a channel, or a save. Polls start on your saved bot, so press **Save Changes** first. Your poll stays in the window.

**A member can't vote**

Their private reply says why. Look at [Who can vote](https://botghost.com/docs/community-engagement/polls#who-can-vote): the voting roles, the roles that can't vote, time in the server and account age. The poll uses the rules it started with, so a change you made after it started doesn't apply to it.

**Can I change a poll after it starts?**

Yes, for a button poll. `/poll edit` changes its question, adds an answer to a multiple choice poll, or sets a new end counted from now. Its voting rules and look stay as they started.

**Why can't I see who voted?**

The poll decides. With **Only staff**, the **Voters** button answers poll staff only. With **Nobody**, there's no button, and who voted is deleted when the poll closes. Discord keeps who voted in its own polls, so open the poll in Discord to see them.

**Members can still post Discord polls**

Check **How** on the **Members' polls** tab, and the channels under **Where**. With **Block them**, your bot needs **Manage Channels** and **Manage Roles**, so look for **Bot permissions** on the tab, then press **Apply now**. Server owners and members with **Administrator** can always post polls. With **Staff are never stopped** on, so can your poll staff.

**Remove mode isn't deleting polls**

Turn on the **Message Content** intent in the Discord Developer Portal, under **Bot**, and save your bot. Check that **Delete the poll** is on and that the channel and the member are covered by **Where** and **Who**. With **Staff are never stopped** on, polls from members with **Manage Messages** are left alone.

**Where did the old Polls Filter go?**

It's the **Members' polls** tab of this module. See [Moving from the old Polls and Polls Filter](https://botghost.com/docs/community-engagement/polls#moving-from-the-old-polls-and-polls-filter) to bring your settings over.
