[V3 Audio] Restrict check for reactions on [p]now (#1752)

This commit is contained in:
aikaterna 2018-06-01 17:44:30 -07:00 committed by Kowlin
parent 9f0e752318
commit d47d12e961

View File

@ -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)