Class MessagePollVoteAddEvent
java.lang.Object
net.dv8tion.jda.api.events.Event
net.dv8tion.jda.api.events.message.GenericMessageEvent
net.dv8tion.jda.api.events.message.poll.GenericMessagePollVoteEvent
net.dv8tion.jda.api.events.message.poll.MessagePollVoteAddEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a user voted for a poll answer.
If the poll allows selecting multiple answers, one event per vote is sent.
If the poll allows selecting multiple answers, one event per vote is sent.
Can be used to track when a user votes for a poll answer
Requirements
These events require at least one of the following intents (Will not fire at all if neither is enabled):
GUILD_MESSAGE_POLLS
to work in guild text channelsDIRECT_MESSAGE_POLLS
to work in private channels
-
Constructor Summary
ConstructorDescriptionMessagePollVoteAddEvent
(MessageChannel channel, long responseNumber, long messageId, long userId, long answerId) -
Method Summary
Methods inherited from class net.dv8tion.jda.api.events.message.poll.GenericMessagePollVoteEvent
getAnswerId, getUserId, getUserIdLong, retrieveMember, retrieveMessage, retrieveUser
Methods inherited from class net.dv8tion.jda.api.events.message.GenericMessageEvent
getChannel, getChannelType, getGuild, getGuildChannel, getJumpUrl, getMessageId, getMessageIdLong, isFromGuild, isFromThread, isFromType
Methods inherited from class net.dv8tion.jda.api.events.Event
getJDA, getRawData, getResponseNumber, toString
-
Constructor Details
-
MessagePollVoteAddEvent
public MessagePollVoteAddEvent(@Nonnull MessageChannel channel, long responseNumber, long messageId, long userId, long answerId)
-