Skip to main content

CreatePoll

@discordeno/botDocs


Documentation / @discordeno/bot / CreatePoll

Interface: CreatePoll

https://discord.com/developers/docs/resources/poll#poll-create-request-object

Properties

allowMultiselect

allowMultiselect: boolean

Whether a user can select multiple answers

Default

false

Defined in

packages/types/dist/types/discordeno.d.ts:1412


answers

answers: Omit<object, "answerId">[]

Each of the answers available in the poll, up to 10

Defined in

packages/types/dist/types/discordeno.d.ts:1397


duration

duration: number

Number of hours the poll should be open for

Remarks

up to 32 days

Default

24

Defined in

packages/types/dist/types/discordeno.d.ts:1406


layoutType?

optional layoutType: Default

The layout type of the poll

Defined in

packages/types/dist/types/discordeno.d.ts:1414


question

question: object

The question of the poll. Only text is supported.

emoji

emoji: undefined | object

text

text: undefined | string

Defined in

packages/types/dist/types/discordeno.d.ts:1395