From adbcac7ec00de9e5a2474c9eee8762dc5bbb33a2 Mon Sep 17 00:00:00 2001 From: Jess <62964686+RainzDev@users.noreply.github.com> Date: Thu, 1 May 2025 22:24:29 +0400 Subject: [PATCH 1/2] removed the ability to delete the user reaction if reacted to their own message The reason why I believe this should be removed is because there could be other reasons to why users would react to their own message with a star --- tux/cogs/services/starboard.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tux/cogs/services/starboard.py b/tux/cogs/services/starboard.py index 1114337a..ec34b116 100644 --- a/tux/cogs/services/starboard.py +++ b/tux/cogs/services/starboard.py @@ -309,8 +309,6 @@ async def handle_starboard_reaction(self, payload: discord.RawReactionActionEven async for user in reaction.users(): if user.id == message.author.id: reaction_count -= 1 - with contextlib.suppress(Exception): - await message.remove_reaction(starboard.starboard_emoji, message.author) starboard_channel = channel.guild.get_channel(starboard.starboard_channel_id) if not isinstance(starboard_channel, discord.TextChannel): From fac08366a71d6fd93fb2cf9d6c9b155bf6aa88f6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 18:30:33 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tux/cogs/services/starboard.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tux/cogs/services/starboard.py b/tux/cogs/services/starboard.py index ec34b116..ce925afc 100644 --- a/tux/cogs/services/starboard.py +++ b/tux/cogs/services/starboard.py @@ -1,4 +1,3 @@ -import contextlib from datetime import UTC, datetime, timedelta import discord