aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks123 <[email protected]>2020-03-30 09:44:13 +0300
committerGravatar ks123 <[email protected]>2020-03-30 09:44:13 +0300
commit307aacbf1b7304ebb52d5193f19b5a12623cdbfd (patch)
treed0a114e56e19976956b7fdf6361b62b4769de95a
parent(Tags): Added trashcan handling to `!tags get` command. (diff)
(Tags): Fixed trashcan handling check.
-rw-r--r--bot/cogs/tags.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py
index 5dbb75c73..3f9647eb5 100644
--- a/bot/cogs/tags.py
+++ b/bot/cogs/tags.py
@@ -148,8 +148,8 @@ class Tags(Cog):
def check_trashcan(reaction: Reaction, user: User) -> bool:
return (
reaction.emoji == Emojis.trashcan
- and user.id == ctx.author.id
- and reaction.message == msg
+ and user == ctx.author
+ and reaction.message.id == msg.id
)
try:
await self.bot.wait_for("reaction_add", timeout=60.0, check=check_trashcan)