From df2f3b7ac51812cf2a225accec533ac1112ddf25 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Fri, 5 May 2023 18:11:32 +0200 Subject: [PATCH] Hotfix clearreactsbyuser() --- robocop_ng/cogs/mod_reacts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/robocop_ng/cogs/mod_reacts.py b/robocop_ng/cogs/mod_reacts.py index 3d12e52..0d95483 100644 --- a/robocop_ng/cogs/mod_reacts.py +++ b/robocop_ng/cogs/mod_reacts.py @@ -29,10 +29,10 @@ class ModReact(Cog): count = 0 async for msg in channel.history(limit=limit): for react in msg.reactions: - if await react.users().find(lambda u: u == user): - count += 1 - async for u in react.users(): - await msg.remove_reaction(react, u) + async for react_user in react.users(): + if react_user == user: + count += 1 + await react.remove(user) msg = ( f"✏️ **Cleared reacts**: {ctx.author.mention} cleared " f"{user.mention}'s reacts from the last {limit} messages "