Not including ctx.typing for everything

pull/8/head
sgoudham 4 years ago
parent e794f0d7de
commit 100b462323

@ -274,10 +274,10 @@ class Moderation(Cog):
Multiple Members can be Kicked at Once Multiple Members can be Kicked at Once
""" """
with ctx.typing():
if await check(ctx, members, action="Kick"): if await check(ctx, members, action="Kick"):
return return
with ctx.typing():
# Send embed of the kicked member # Send embed of the kicked member
await kick_members(ctx.message, members, reason) await kick_members(ctx.message, members, reason)
@ -289,10 +289,11 @@ class Moderation(Cog):
Mute Member(s) from Server Mute Member(s) from Server
Multiple Members can be Muted At Once Multiple Members can be Muted At Once
""" """
with ctx.typing():
if await check(ctx, members, action="Mute"): if await check(ctx, members, action="Mute"):
return return
with ctx.typing():
role = discord.utils.get(ctx.guild.roles, name="Muted") role = discord.utils.get(ctx.guild.roles, name="Muted")
if role is None: if role is None:
# Setting up the role permissions for the Muted Role # Setting up the role permissions for the Muted Role
@ -317,10 +318,10 @@ class Moderation(Cog):
""" """
unmute = False unmute = False
with ctx.typing():
if await check(ctx, members, action="Unmute"): if await check(ctx, members, action="Unmute"):
return return
with ctx.typing():
role = discord.utils.get(ctx.guild.roles, name="Muted") role = discord.utils.get(ctx.guild.roles, name="Muted")
if role is None: if role is None:
embed = Embed(description="**❌ No Muted Role Was Found! ❌**", embed = Embed(description="**❌ No Muted Role Was Found! ❌**",
@ -348,10 +349,10 @@ class Moderation(Cog):
Multiple Members can be banned at once Multiple Members can be banned at once
""" """
with ctx.typing():
if await check(ctx, members, action="Ban"): if await check(ctx, members, action="Ban"):
return return
with ctx.typing():
# Send embed of the Banned member # Send embed of the Banned member
await ban_members(ctx.message, members, reason) await ban_members(ctx.message, members, reason)

Loading…
Cancel
Save