# Poll/Voting System

With our voting system you can have anonymous voting in your server, you can allow only specific roles to respond and create polls.

First thing you need to do is setup the voting system in your server, and to do that, run the following command.&#x20;

### **/vote-setup**

| Parameter      | Description                               |
| -------------- | ----------------------------------------- |
| Role           | A role to interact and create polls.      |
| voting-channel | The channel the poll message will be sent |
|                |                                           |

<div align="left"><figure><img src="/files/kFqOpN0x9HQNFF7c9RCv" alt=""><figcaption><p>Voting setup</p></figcaption></figure></div>

After you run the setup command, you will receive a confirmation email like this.

<div align="left"><figure><img src="/files/ibjlFC9wyjNBVQ1pJmmX" alt=""><figcaption></figcaption></figure></div>

You are now able to start creating polls, don't forget you need to have the role you selected in the setup to be able to run the /vote-create command.<br>

### Creating polls.

Run the following command to create a poll.

&#x20;/vote create

| Parameter          | Description                                                                                                                              |
| ------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
| poll-question      | The question or statement you want people to vote on                                                                                     |
| poll-options       | The possible answers people can pick from to answer your poll                                                                            |
| poll-duration-time | <p>The time the poll will stay open in, hours or days, you need to use h or d to represent it. <br>Example: 2h, 3d are valid options</p> |
|                    |                                                                                                                                          |

Example:<br>

<div align="left"><figure><img src="/files/Blgc0dtHZcHLI0S5KqrL" alt=""><figcaption></figcaption></figure></div>

This is the poll available for people to vote on after you submit the /vote-create command.<br>

<div align="left"><figure><img src="/files/D62Gy35gzZtje77GSvjp" alt=""><figcaption></figcaption></figure></div>

And this is when the time expires how the system display the results.

<div align="left"><figure><img src="/files/wWO64UM5g1pdFzZW3Y4B" alt=""><figcaption></figcaption></figure></div>

### Adding extra roles

This is the last command available on the voting system that allows you to add more roles to be able to create and vote on polls.

&#x20;/vote-add-role

| Parameter | Description                          |
| --------- | ------------------------------------ |
| Role      | A role to interact and create polls. |

<div align="left"><figure><img src="/files/m0wU2QTuBejn9OlsxlQ0" alt=""><figcaption></figcaption></figure></div>

\
Watch below a demonstration on how to setup the poll system, add extra roles and create a new poll for members of your server to vote on.

{% embed url="<https://youtu.be/32Wvn6nkS7M>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tektools.app/product-guides/configuring-in-discord/poll-voting-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
