<private> new Poll(author, message, options)
Parameters:
Name | Type | Description |
---|---|---|
author |
string | ID of the user who started this poll. |
message |
Discord~Message | The message to watch for the results. |
options |
Polling~PollOptions | The settings for this current poll. |
- Source:
Properties:
Name | Type | Argument | Description |
---|---|---|---|
author |
string | ID of the user who started this poll. | |
message |
Discord~Message | Reference to the Message object with the reaction listener. | |
title |
string | The user defined text associated with this poll. | |
endTime |
number |
<nullable> |
The timestamp at which this poll is scheduled to end. |
emojis |
Array.<string> | The emojis to add as reactions to use as buttons. | |
choices |
Array.<string> | The full string that came with the emoji if the user specified custom response options. | |
timeout |
Array.<string> | The scheduled timeout when this poll will end. |
Members
-
author :string
-
ID of the user who started this poll.
Type:
- string
-
choices :Array.<string>
-
The full string that came with the emoji if the user specified custom response options.
Type:
- Array.<string>
-
emojis :Array.<string>
-
The emojis to add as reactions to use as buttons.
Type:
- Array.<string>
-
<nullable> endTime :number
-
The timestamp at which this poll is scheduled to end.
Type:
- number
-
message :Discord~Message
-
Reference to the Message object with the reaction listener.
Type:
- Discord~Message
-
<nullable> timeout :Timeout
-
The scheduled timeout when this poll will end.
Type:
- Timeout
-
title :string
-
The user defined text associated with this poll.
Type:
- string