Class MessagePoll.Question

java.lang.Object
net.dv8tion.jda.api.entities.messages.MessagePoll.Question
Enclosing interface:
MessagePoll

public static class MessagePoll.Question extends Object
The question for a poll.
  • Constructor Details

    • Question

      public Question(String text, Emoji emoji)
  • Method Details

    • getText

      @Nonnull public String getText()
      The poll question title.

      Shown above all answers.

      Returns:
      The question title
    • getEmoji

      @Nullable public EmojiUnion getEmoji()
      Possible emoji related to the poll question.
      Returns:
      Possibly-null emoji