mirror of
https://github.com/Ryujinx/ryuko-ng.git
synced 2024-12-23 02:45:38 +00:00
Hotfix clearreactsbyuser()
This commit is contained in:
parent
52d7c08324
commit
df2f3b7ac5
|
@ -29,10 +29,10 @@ class ModReact(Cog):
|
||||||
count = 0
|
count = 0
|
||||||
async for msg in channel.history(limit=limit):
|
async for msg in channel.history(limit=limit):
|
||||||
for react in msg.reactions:
|
for react in msg.reactions:
|
||||||
if await react.users().find(lambda u: u == user):
|
async for react_user in react.users():
|
||||||
|
if react_user == user:
|
||||||
count += 1
|
count += 1
|
||||||
async for u in react.users():
|
await react.remove(user)
|
||||||
await msg.remove_reaction(react, u)
|
|
||||||
msg = (
|
msg = (
|
||||||
f"✏️ **Cleared reacts**: {ctx.author.mention} cleared "
|
f"✏️ **Cleared reacts**: {ctx.author.mention} cleared "
|
||||||
f"{user.mention}'s reacts from the last {limit} messages "
|
f"{user.mention}'s reacts from the last {limit} messages "
|
||||||
|
|
Loading…
Reference in a new issue