mirror of
https://github.com/brandons209/Red-bot-Cogs.git
synced 2024-05-16 02:13:18 +12:00
fix for reactions runnning in dms
This commit is contained in:
parent
44cb3e6812
commit
cdb7c41d90
|
@ -133,7 +133,7 @@ class ReactPoll(commands.Cog):
|
|||
user = guild.get_member(payload.user_id)
|
||||
message = await self.bot.get_channel(payload.channel_id).fetch_message(payload.message_id)
|
||||
# Listener is required to remove bad reactions
|
||||
if user == self.bot.user:
|
||||
if user == self.bot.user or not guild:
|
||||
return # Don't remove bot's own reactions
|
||||
|
||||
emoji = payload.emoji
|
||||
|
|
Loading…
Reference in a new issue