DiscordPollMedia
Documentation / @discordeno/bot / DiscordPollMedia
Interface: DiscordPollMedia
Defined in: packages/types/dist/types/discord/poll.d.ts:36
https://discord.com/developers/docs/resources/poll#poll-media-object-poll-media-object-structure
Properties
emoji?
optional
emoji:Partial
<DiscordEmoji
>
Defined in: packages/types/dist/types/discord/poll.d.ts:51
The emoji of the field
Remarks
When creating a poll answer with an emoji, one only needs to send either the id
(custom emoji) or name
(default emoji) as the only field.
text?
optional
text:string
Defined in: packages/types/dist/types/discord/poll.d.ts:44
The text of the field
Remarks
text
should always be non-null for both questions and answers, but this is subject to changes.
The maximum length of text
is 300 for the question, and 55 for any answer.