From 273faec66c57f6dfa7603b6e5b221703ac41914d Mon Sep 17 00:00:00 2001 From: Xithrius <15021300+Xithrius@users.noreply.github.com> Date: Wed, 2 Nov 2022 01:54:37 -0700 Subject: Possible race condition avoided --- bot/exts/utilities/bookmark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/exts/utilities/bookmark.py b/bot/exts/utilities/bookmark.py index 7c55be5d..9e6bb921 100644 --- a/bot/exts/utilities/bookmark.py +++ b/bot/exts/utilities/bookmark.py @@ -59,11 +59,11 @@ class SendBookmark(discord.ui.View): ephemeral=True, ) return - + self.clicked.append(interaction.user.id) + await self.bookmark_function(self.channel, interaction.user, self.target_message, self.title) await interaction.response.send_message("You have received a bookmark to that message.", ephemeral=True) - self.clicked.append(interaction.user.id) class Bookmark(commands.Cog): -- cgit v1.2.3