Storage · Step
Count votes
The votes for each option of a named vote, most first, and the winner (ties reported).
vote.tally
In a flow
“When a button is clicked, count votes.”
/results → Count votes → Reply with As text.
What it does
The votes for each option of a named vote, most first, and the winner (ties reported). It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 4 values later steps can use. Find it under Storage in the palette.
When to use it
Use it to keep something between runs: the votes for each option of a named vote, most first, and the winner (ties reported).
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Vote Text
-
Its name.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses map.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
Values it gives
- As text Text
-
One option a line with its votes. e.g. Spawn 7
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more
- Winner Text
-
The top option (empty on a tie or no votes). e.g. Spawn
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccept applicationAdd a forum tagAdd a labelAdd a Notion pageAdd a row to a Google SheetAdd a staff noteAdd a stickerAdd a Trello cardand 577 more
- Tie Yes / no
-
On when the top is shared. e.g. off
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd a forum tagAdd onboarding questionAdd to a counterAlarms that are dueAndAutoMod: Discord's word listsBluesky latest postBoard as emojiand 572 more
- Votes Number
-
Votes in all. e.g. 12
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more