Polls
endPoll
$endPoll
Ends a poll right now. This function is a Bot Creator extension: it does not exist in the official BDFD wiki. It runs the same Discord logic as the matching block.
Syntax
$endPoll[channelID;messageID]
Parameters
| Parameter | Description |
|---|---|
channelID |
Channel ID (digits only). Optional: empty means the current channel. |
messageID |
Required. The ID of the message holding the poll. |
Return Value
- Type: String
- Always empty.
Behavior
- The bot needs Manage Messages in the guild.
- Discord only accepts this for polls that are still running.
Examples
$endPoll[$channelID;$message[1]]
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.