Class GenericMessagePollVoteEvent

java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.message.GenericMessageEvent
net.dv8tion.jda.api.events.message.poll.GenericMessagePollVoteEvent
All Implemented Interfaces:
GenericEvent
Direct Known Subclasses:
MessagePollVoteAddEvent, MessagePollVoteRemoveEvent

public class GenericMessagePollVoteEvent extends GenericMessageEvent
Indicates that a poll vote was added/removed.
Every MessagePollVoteEvent is derived from this event and can be casted.

Can be used to detect both remove and add events.

Requirements

These events require at least one of the following intents (Will not fire at all if neither is enabled):

  • Constructor Details

    • GenericMessagePollVoteEvent

      public GenericMessagePollVoteEvent(@Nonnull MessageChannel channel, long responseNumber, long messageId, long userId, long answerId)
  • Method Details