From 4e784101ec94365ba80468226f191445ccc175d6 Mon Sep 17 00:00:00 2001 From: Soheab_ <33902984+Soheab@users.noreply.github.com> Date: Wed, 29 Mar 2023 10:03:17 +0200 Subject: [PATCH] fix(autopaste): Allow users to delete own autopaste message This was an oversight from the previous fix. This fix allows users helping in threads to delete the pasting message for their own messages, as intended before but not the thread author. --- cogs/autopaste.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cogs/autopaste.py b/cogs/autopaste.py index 73fc90e..b21ca53 100644 --- a/cogs/autopaste.py +++ b/cogs/autopaste.py @@ -74,10 +74,8 @@ async def interaction_check(self, interaction: Interaction) -> bool: return True elif thread_author.id == self.message_author.id and thread_author.id == interaction.user.id: return False - elif interaction.user.id == self.message_author.id: - return True - return False + return interaction.user.id == self.message_author.id class AutoPaste(Cog):