@@ -719,7 +719,6 @@ async def kick(self, ctx: DozerContext, user_mention: discord.User, *, reason: s
719719 @bot_has_permissions (manage_permissions = True )
720720 async def mute (self , ctx : DozerContext , member_mentions : discord .Member , * , reason : str = "No reason provided" ):
721721 """Mute a user to prevent them from sending messages"""
722- await ctx .defer ()
723722 orig_channel = ctx .interaction .followup if ctx .interaction else ctx .channel
724723 async with ctx .typing ():
725724 seconds = self .hm_to_seconds (reason )
@@ -742,7 +741,6 @@ async def mute(self, ctx: DozerContext, member_mentions: discord.Member, *, reas
742741 @bot_has_permissions (manage_permissions = True )
743742 async def unmute (self , ctx : DozerContext , member_mentions : discord .Member , * , reason = "No reason provided" ):
744743 """Unmute a user to allow them to send messages again."""
745- await ctx .defer ()
746744 orig_channel = ctx .interaction .followup if ctx .interaction else ctx .channel
747745 async with ctx .typing ():
748746 if await self ._unmute (member_mentions ):
@@ -760,7 +758,6 @@ async def unmute(self, ctx: DozerContext, member_mentions: discord.Member, *, re
760758 @bot_has_permissions (manage_permissions = True )
761759 async def deafen (self , ctx : DozerContext , member_mentions : discord .Member , * , reason : str = "No reason provided" ):
762760 """Deafen a user to prevent them from both sending messages but also reading messages."""
763- await ctx .defer ()
764761 orig_channel = ctx .interaction .followup if ctx .interaction else ctx .channel
765762 async with ctx .typing ():
766763 seconds = self .hm_to_seconds (reason )
@@ -786,7 +783,6 @@ async def deafen(self, ctx: DozerContext, member_mentions: discord.Member, *, re
786783 type = discord .ext .commands .BucketType .guild ) # 10 seconds per 2 members in the guild
787784 async def selfdeafen (self , ctx : DozerContext , * , reason : str = "No reason provided" ):
788785 """Deafen yourself for a given time period to prevent you from reading or sending messages."""
789- await ctx .defer ()
790786 orig_channel = ctx .interaction .followup if ctx .interaction else ctx .channel
791787 async with ctx .typing ():
792788 seconds = self .hm_to_seconds (reason )
@@ -811,7 +807,6 @@ async def selfdeafen(self, ctx: DozerContext, *, reason: str = "No reason provid
811807 @bot_has_permissions (manage_permissions = True )
812808 async def undeafen (self , ctx : DozerContext , member_mentions : discord .Member , * , reason : str = "No reason provided" ):
813809 """Undeafen a user to allow them to see message and send message again."""
814- await ctx .defer ()
815810 orig_channel = ctx .interaction .followup if ctx .interaction else ctx .channel
816811 async with ctx .typing ():
817812 result = await self ._undeafen (member_mentions )
0 commit comments