Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions dozer/cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,6 @@ async def kick(self, ctx: DozerContext, user_mention: discord.User, *, reason: s
@bot_has_permissions(manage_permissions=True)
async def mute(self, ctx: DozerContext, member_mentions: discord.Member, *, reason: str = "No reason provided"):
"""Mute a user to prevent them from sending messages"""
await ctx.defer()
orig_channel = ctx.interaction.followup if ctx.interaction else ctx.channel
async with ctx.typing():
seconds = self.hm_to_seconds(reason)
Expand All @@ -742,7 +741,6 @@ async def mute(self, ctx: DozerContext, member_mentions: discord.Member, *, reas
@bot_has_permissions(manage_permissions=True)
async def unmute(self, ctx: DozerContext, member_mentions: discord.Member, *, reason="No reason provided"):
"""Unmute a user to allow them to send messages again."""
await ctx.defer()
orig_channel = ctx.interaction.followup if ctx.interaction else ctx.channel
async with ctx.typing():
if await self._unmute(member_mentions):
Expand All @@ -760,7 +758,6 @@ async def unmute(self, ctx: DozerContext, member_mentions: discord.Member, *, re
@bot_has_permissions(manage_permissions=True)
async def deafen(self, ctx: DozerContext, member_mentions: discord.Member, *, reason: str = "No reason provided"):
"""Deafen a user to prevent them from both sending messages but also reading messages."""
await ctx.defer()
orig_channel = ctx.interaction.followup if ctx.interaction else ctx.channel
async with ctx.typing():
seconds = self.hm_to_seconds(reason)
Expand All @@ -786,7 +783,6 @@ async def deafen(self, ctx: DozerContext, member_mentions: discord.Member, *, re
type=discord.ext.commands.BucketType.guild) # 10 seconds per 2 members in the guild
async def selfdeafen(self, ctx: DozerContext, *, reason: str = "No reason provided"):
"""Deafen yourself for a given time period to prevent you from reading or sending messages."""
await ctx.defer()
orig_channel = ctx.interaction.followup if ctx.interaction else ctx.channel
async with ctx.typing():
seconds = self.hm_to_seconds(reason)
Expand All @@ -811,7 +807,6 @@ async def selfdeafen(self, ctx: DozerContext, *, reason: str = "No reason provid
@bot_has_permissions(manage_permissions=True)
async def undeafen(self, ctx: DozerContext, member_mentions: discord.Member, *, reason: str = "No reason provided"):
"""Undeafen a user to allow them to see message and send message again."""
await ctx.defer()
orig_channel = ctx.interaction.followup if ctx.interaction else ctx.channel
async with ctx.typing():
result = await self._undeafen(member_mentions)
Expand Down