PollSendPayload
PollSendPayload =
object
Properties
allowMultiselect
allowMultiselect:
boolean
Whether the poll allows multiple answers
answers
answers:
object
[]
Name | Type | Description |
---|---|---|
emoji? | object | The emoji of the answer. When creating a poll answer with an emoji, you only need to send either the id (custom emoji) or name (default emoji) as the only field. |
emoji.id | string | - |
emoji.name | string | - |
text? | string | The text of the answer, up to 55 characters |
expiry
expiry:
number
The time in seconds before the poll expires.
layoutType?
optional
layoutType:1
The layout type of the poll. Currently only 1 is supported, and will be set by default.
Default
question
question:
object
Name | Type | Description |
---|---|---|
text? | string | The text of the question, up to 300 characters |