mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[V3 Audio] Restrict check for reactions on [p]now (#1752)
This commit is contained in:
parent
9f0e752318
commit
d47d12e961
@ -425,7 +425,11 @@ class Audio:
|
||||
await message.add_reaction(expected[i])
|
||||
|
||||
def check(r, u):
|
||||
return r.message.id == message.id and u == ctx.message.author
|
||||
return (
|
||||
r.message.id == message.id
|
||||
and u == ctx.message.author
|
||||
and any(e in str(r.emoji) for e in expected)
|
||||
)
|
||||
|
||||
try:
|
||||
(r, u) = await self.bot.wait_for("reaction_add", check=check, timeout=10.0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user