aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/duck_pond.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/bot/cogs/duck_pond.py b/bot/cogs/duck_pond.py
index b2b4ad0c2..68fb09408 100644
--- a/bot/cogs/duck_pond.py
+++ b/bot/cogs/duck_pond.py
@@ -129,6 +129,13 @@ class DuckPond(Cog):
amount of ducks specified in the config under duck_pond/threshold, it will
send the message off to the duck pond.
"""
+ # Is the emoji in the reaction a duck?
+ if payload.emoji.is_custom_emoji():
+ if payload.emoji.id not in constants.DuckPond.custom_emojis:
+ return
+ elif payload.emoji.name != "🦆":
+ return
+
channel = discord.utils.get(self.bot.get_all_channels(), id=payload.channel_id)
message = await channel.fetch_message(payload.message_id)
member = discord.utils.get(message.guild.members, id=payload.user_id)
@@ -137,13 +144,6 @@ class DuckPond(Cog):
if not self.is_staff(member) or member.bot:
return
- # Is the emoji in the reaction a duck?
- if payload.emoji.is_custom_emoji():
- if payload.emoji.id not in constants.DuckPond.custom_emojis:
- return
- elif payload.emoji.name != "🦆":
- return
-
# Does the message already have a green checkmark?
if await self.has_green_checkmark(message):
return