[MassUnban] Add typing indicator
This commit is contained in:
@@ -56,6 +56,7 @@ class MassUnban(commands.Cog):
|
||||
try:
|
||||
await self.bot.wait_for("message", check=pred, timeout=15)
|
||||
if pred.result is True:
|
||||
async with ctx.typing():
|
||||
for ban_entry in banlist:
|
||||
await ctx.guild.unban(ban_entry.user, reason=f"Mass Unban requested by {str(ctx.author)} ({ctx.author.id})")
|
||||
await asyncio.sleep(0.5)
|
||||
@@ -65,6 +66,7 @@ class MassUnban(commands.Cog):
|
||||
except asyncio.TimeoutError:
|
||||
return await ctx.send("Response timed out. Please run this command again if you wish to try again.")
|
||||
else:
|
||||
async with ctx.typing():
|
||||
for ban_entry in banlist:
|
||||
if not ban_entry.reason:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user