mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
Remove usage of loop arg in calls to start_adding_reactions (#3644)
* fix stacklevels of warnings * stop using loop arg when calling start_adding_reactions * [Audio] Stop using loop arg when calling start_adding_reactions
This commit is contained in:
@@ -645,7 +645,7 @@ class Permissions(commands.Cog):
|
||||
if ctx.guild is None or ctx.guild.me.permissions_in(ctx.channel).add_reactions:
|
||||
msg = await ctx.send(_("Are you sure?"))
|
||||
# noinspection PyAsyncCall
|
||||
task = start_adding_reactions(msg, ReactionPredicate.YES_OR_NO_EMOJIS, ctx.bot.loop)
|
||||
task = start_adding_reactions(msg, ReactionPredicate.YES_OR_NO_EMOJIS)
|
||||
pred = ReactionPredicate.yes_or_no(msg, ctx.author)
|
||||
try:
|
||||
await ctx.bot.wait_for("reaction_add", check=pred, timeout=30)
|
||||
|
||||
Reference in New Issue
Block a user