Polls
poll
$poll — Starts a poll sent as a message of its own in the current channel when the script ends. Add 2 to 10 answers with $pollAnswer / $pollAnswers.
Starts a poll sent as a message of its own in the current channel when the script ends. Add 2 to 10 answers with $pollAnswer / $pollAnswers.
Syntax
$poll[question;duration;(multiselect);(layout)]
Parameters
- question (String, required) — Question (300 characters)
- duration (String, required) — Duration, for example 1h or 2d (1 hour to 32 days)
- multiselect (Boolean, optional) — Allow several answers (false)
- layout (String, optional) — Default
Return Value
- None.
Usage
$poll[Favourite?;1d;false] → result
Example
$sendMessage[$poll[Favourite?;1d;false]]
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.