aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-03-30 21:26:10 +0100
committerGravatar Chris <[email protected]>2021-03-30 21:26:10 +0100
commitfd57de601752db923f558b726e17af665a69df55 (patch)
tree05b3244c32370da0598dc3671f1551f502ce9ac2 /bot
parentConsistent comments in bookmark command (diff)
Remove unnecessary underscores from variables in the bm command
Diffstat (limited to 'bot')
-rw-r--r--bot/exts/evergreen/bookmark.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/exts/evergreen/bookmark.py b/bot/exts/evergreen/bookmark.py
index 2088c610..16919d8c 100644
--- a/bot/exts/evergreen/bookmark.py
+++ b/bot/exts/evergreen/bookmark.py
@@ -104,19 +104,19 @@ class Bookmark(commands.Cog):
await ctx.send(embed=embed)
return
- def event_check(reaction_: discord.Reaction, user_: discord.Member) -> bool:
+ def event_check(reaction: discord.Reaction, user: discord.Member) -> bool:
"""Make sure that this reaction is what we want to operate on."""
return (
# Conditions for a successful pagination:
all((
# Reaction is on this message
- reaction_.message.id == reaction_message.id,
+ reaction.message.id == reaction_message.id,
# User has not already bookmarked this message
- user_.id not in bookmarked_users,
+ user.id not in bookmarked_users,
# Reaction is the `BOOKMARK_EMOJI` emoji
- str(reaction_.emoji) == BOOKMARK_EMOJI,
+ str(reaction.emoji) == BOOKMARK_EMOJI,
# Reaction was not made by the Bot
- user_.id != self.bot.user.id
+ user.id != self.bot.user.id
))
)
await self.action_bookmark(ctx.channel, ctx.author, target_message, title)