Class MessagePollVoteRemoveEvent
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.MessagePollVoteRemoveEvent
- All Implemented Interfaces:
GenericEvent
Indicates that a user removed a vote 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 removes a vote 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
ConstructorDescriptionMessagePollVoteRemoveEvent
(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
-
MessagePollVoteRemoveEvent
public MessagePollVoteRemoveEvent(@Nonnull MessageChannel channel, long responseNumber, long messageId, long userId, long answerId)
-