diff options
author | 2023-06-13 14:26:26 +0530 | |
---|---|---|
committer | 2023-06-13 08:56:26 +0000 | |
commit | 2e0f73be98047ae6006d6ed0bb9d4f242b782949 (patch) | |
tree | 93c3e2735f2814faee597b319e336f47ea2a2445 | |
parent | Remove unnecessary pinning of nomination review message in #nomination-voting... (diff) |
Fix missing message unpinning on adding ticket emoji to nomination review. (#2639)
-rw-r--r-- | bot/exts/recruitment/talentpool/_cog.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py index 05c0b7c71..547de4cc9 100644 --- a/bot/exts/recruitment/talentpool/_cog.py +++ b/bot/exts/recruitment/talentpool/_cog.py @@ -564,7 +564,6 @@ class TalentPool(Cog, name="Talentpool"): """ Watch for reactions in the #nomination-voting channel to automate it. - Adding a ticket emoji will unpin the message. Adding an incident reaction will archive the message. """ if payload.channel_id != Channels.nomination_voting: @@ -576,9 +575,7 @@ class TalentPool(Cog, name="Talentpool"): message: PartialMessage = self.bot.get_channel(payload.channel_id).get_partial_message(payload.message_id) emoji = str(payload.emoji) - if emoji == "\N{TICKET}": - await message.unpin(reason="Admin task created.") - elif emoji in {Emojis.incident_actioned, Emojis.incident_unactioned}: + if emoji in {Emojis.incident_actioned, Emojis.incident_unactioned}: log.info(f"Archiving nomination {message.id}") await self.reviewer.archive_vote(message, emoji == Emojis.incident_actioned) |