Skip to content

$getPollVotes

$getPollVotes will return the users that voted for the answer.

Usage

$getPollVotes[channelID?;messageID?;pollId;format?;sep?]

Parameters

FieldTypeDescriptionRequired
channelID?numberThe channel ID where the poll was created.false
messageID?numberThe message ID of the poll.false
pollIdnumberID of the poll answer where the votes will be retrieved from.true
format?stringFormat for the list.
1. username
2. tag
3. id
false
sep?stringSeparator for each entry (default ,).false

Example(s)

This will return the username of the usernames that voted for the first answer on the poll, separated by a comma. Replace the channelID and messageID with actual IDs:

1
client.command({
2
name: "getPollVotes",
3
code: `$getPollVotes[channelID;messageID;1;{username};, ]`
4
});