diff options
author | 2022-11-02 01:54:37 -0700 | |
---|---|---|
committer | 2022-11-02 01:54:37 -0700 | |
commit | 273faec66c57f6dfa7603b6e5b221703ac41914d (patch) | |
tree | b5513c075aa9cf1e6a16df477ac57879a8f097a5 | |
parent | Corrected indentation (diff) |
Possible race condition avoided
-rw-r--r-- | bot/exts/utilities/bookmark.py | 4 |
1 files 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): |