MessagePoll
Defined in: packages/types/src/index.ts:319
A poll to send; Discord fills in results and expiry when it is read back.
Properties
Section titled “Properties”allow_multiselect?
Section titled “allow_multiselect?”
optionalallow_multiselect?:boolean
Defined in: packages/types/src/index.ts:324
answers
Section titled “answers”answers:
object[]
Defined in: packages/types/src/index.ts:321
poll_media
Section titled “poll_media”poll_media:
object
poll_media.emoji?
Section titled “poll_media.emoji?”
optionalemoji?:APIPartialEmoji
poll_media.text?
Section titled “poll_media.text?”
optionaltext?:string
duration?
Section titled “duration?”
optionalduration?:number
Defined in: packages/types/src/index.ts:323
Hours the poll stays open (1-768).
layout_type?
Section titled “layout_type?”
optionallayout_type?:number
Defined in: packages/types/src/index.ts:325
question
Section titled “question”question:
object
Defined in: packages/types/src/index.ts:320
emoji?
Section titled “emoji?”
optionalemoji?:APIPartialEmoji
optionaltext?:string