From 6b3251d28d7c4275b2a71776fb84880022d6f078 Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sun, 16 Aug 2020 20:34:45 +0100 Subject: Pin requirement increased to 3 stars --- cogs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cogs/utils.py') diff --git a/cogs/utils.py b/cogs/utils.py index 1c66cf7..7e79ce3 100755 --- a/cogs/utils.py +++ b/cogs/utils.py @@ -160,7 +160,7 @@ class Utils(commands.Cog): @commands.Cog.listener() async def on_reaction_add(self, reaction, user): - if reaction.emoji == "⭐" and not reaction.message.id in self.pins: + if reaction.emoji == "⭐" and not reaction.message.id in self.pins and reaction.count >= 3: self.pins.append(reaction.message.id) embed = discord.Embed(title=f"**{reaction.message.clean_content}**", colour=discord.Colour(0xb92c36), url=reaction.message.jump_url, timestamp=reaction.message.created_at) -- cgit v1.2.3