Carbon
Core/Type Aliases

PollSendPayload

PollSendPayload = object

Properties

allowMultiselect

allowMultiselect: boolean

Whether the poll allows multiple answers


answers

answers: object[]

NameTypeDescription
emoji?objectThe 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.idstring-
emoji.namestring-
text?stringThe 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

1

question

question: object

NameTypeDescription
text?stringThe text of the question, up to 300 characters

On this page