$getPollVotes
$getPollVotes
will return the users that voted for the answer.
Usage
$getPollVotes[channelID?;messageID?;pollId;format?;sep?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
channelID? | number | The channel ID where the poll was created. | false |
messageID? | number | The message ID of the poll. | false |
pollId | number | ID of the poll answer where the votes will be retrieved from. | true |
format? | string | Format for the list. 1. username 2. tag 3. id | false |
sep? | string | Separator 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:
1client.command({2 name: "getPollVotes",3 code: `$getPollVotes[channelID;messageID;1;{username};, ]`4});