@@ -1648,13 +1648,8 @@ def parse_message_poll_vote_add(self, data: gw.PollVoteActionEvent) -> None:
16481648
16491649 if message and user :
16501650 poll = self ._update_poll_counts (message , raw .answer_id , True , raw .user_id == self .self_id )
1651- if not poll :
1652- _log .warning (
1653- 'POLL_VOTE_ADD referencing message with ID: %s does not have a poll. Discarding.' , raw .message_id
1654- )
1655- return
1656-
1657- self .dispatch ('poll_vote_add' , user , poll .get_answer (raw .answer_id ))
1651+ if poll :
1652+ self .dispatch ('poll_vote_add' , user , poll .get_answer (raw .answer_id ))
16581653
16591654 def parse_message_poll_vote_remove (self , data : gw .PollVoteActionEvent ) -> None :
16601655 raw = RawPollVoteActionEvent (data )
@@ -1671,13 +1666,8 @@ def parse_message_poll_vote_remove(self, data: gw.PollVoteActionEvent) -> None:
16711666
16721667 if message and user :
16731668 poll = self ._update_poll_counts (message , raw .answer_id , False , raw .user_id == self .self_id )
1674- if not poll :
1675- _log .warning (
1676- 'POLL_VOTE_REMOVE referencing message with ID: %s does not have a poll. Discarding.' , raw .message_id
1677- )
1678- return
1679-
1680- self .dispatch ('poll_vote_remove' , user , poll .get_answer (raw .answer_id ))
1669+ if poll :
1670+ self .dispatch ('poll_vote_remove' , user , poll .get_answer (raw .answer_id ))
16811671
16821672 def _get_reaction_user (self , channel : MessageableChannel , user_id : int ) -> Optional [Union [User , Member ]]:
16831673 if isinstance (channel , (TextChannel , Thread , VoiceChannel )):
0 commit comments