Skip to content

xd)poll

Colind8 edited this page Jan 23, 2023 · 4 revisions

Everybody Votes but it's a command

xd)poll allows you and others to create and vote on user made polls. Every poll can only have two questions.

Each poll has an ID that you can use to find the exact poll again in case you need it.

Commands

xd)poll

xd)poll

Get a random poll. Excludes polls you've already voted for.


xd)poll create

xd)poll create <question>? <option a>? <option b>?

Create a poll. Each question and options MUST end with a ?.

Arguments

<question> is the question you're asking

<option 1> is the first answer people can choose

<option 2> is the second answer people can choose.

Example

xd)poll create What's your favorite color? Red? Blue?


xd)poll vote

xd)poll vote <id> <option>

Vote on a poll

Arguments

<id> is the ID of the poll. It should be on the embed for it.

<option> is which option of the poll you are voting. Should be either "a" or "b"

Example

xd)poll vote 5213752624 a


xd)poll search

xd)poll search <id>

Returns the poll and its current results by ID.

Arguments

<id> is the ID of the poll. You'll need to already know it before using this command.


xd)poll list

xd)poll list [sort] [filter] [page]

Returns a list of polls.

Arguments

[sort] is how you want the list sorted. It can be one of the following:

  • n to sort by newest
  • o to sort by oldest
  • mv to sort by most voted
  • lv to sort by least voted

[filter] filters the list to what you want. Can be one of the following:

  • v to filter by posts you've voted on
  • c to filter by posts you've created
  • b to filter by posts you've voted on and created
  • n to have no filter
  • Adding a - in front of the filter will exclude the filtered results rather than only showing the filtered results.

[page] is what page of the list you want to show.

Examples

xd)poll list n v - Shows a list of polls you've voted on sorted by newest

xd)poll list mv -b - Shows a list of polls you haven't voted on or created sorted by most voted

xd)poll list o -c - Shows a list of polls you didn't create sorted by oldest


xd)poll rand

xd)poll rand

Get a true random poll. It may include a poll you've already voted for.