Poll Module

class QuickPoll(*args: Any, **kwargs: Any)

This module allows for a poll to be quickly created by mods.

Attention

All commands assume minimum bot permissions: View Channel, Send Messages.

async poll(ctx, question, *options: str)

Create a quick poll with up to 10 options.

Syntax:

!!poll <question> <option1> <option2> ... <option10>

Example Usage:

!!poll "Who your fav sub-unit from Hasu no Sora?" "Cerise Bouquet" "Mira-Cra Park!" "DOLLCHESTRA"
!!poll "Will Liella Season 3 be peak?" "Yes" "No"
Parameters:
  • question (str, required) – The question for the poll.

  • options (str, required) – The options for the poll, separated by spaces. Must provide more than one option and up to a maximum of ten options.

  • If the options provided are only ‘yes’ and ‘no’, the poll will use ‘✅’ and ‘❌’ reactions.

  • Otherwise, the poll will use numbered reactions from ‘1⃣’ to ‘🔟’.

Returns:

Embed with the poll details and options.

Return type:

discord.Embed

Permissions

Author: Manage Roles

Bot: Manage Messages

async tally(ctx, id=None)

Tally all unique votes excluding bots. If a user votes more than once, only their first vote will be counted.

Syntax:

!!tally <messageID>

Example Usage:

!!tally 123456789012345678
Parameters:

id (int, required) – The message ID of the poll to tally votes from.

Returns:

Results from the poll.

Return type:

discord.Embed

Permissions

Author: Manage Roles

Bot: Read Message History