Skip to main content

PollMedia

@discordeno/botDocs


Documentation / @discordeno/bot / PollMedia

Interface: PollMedia

Properties

emoji?

optional emoji: Partial<Emoji>

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.

Defined in

packages/bot/src/transformers/types.ts:1366


text?

optional text: string

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.

Defined in

packages/bot/src/transformers/types.ts:1359