Nostrum.Struct.Message.Poll.Answer (nostrum v0.11.0-dev)

View Source

A struct representing a poll answer.

Summary

Types

ID of the answer, this is only sent from the gateway, you do not need to send this to the gateway.

Object representing how the answer is displayed visually, with the text and optional emojis.

t()

Types

answer_id()

@type answer_id() :: integer() | nil

ID of the answer, this is only sent from the gateway, you do not need to send this to the gateway.

poll_media()

Object representing how the answer is displayed visually, with the text and optional emojis.

t()

@type t() :: %Nostrum.Struct.Message.Poll.Answer{
  answer_id: answer_id(),
  poll_media: poll_media()
}