Skip to content

Commit

Permalink
Fix ban slash command
Browse files Browse the repository at this point in the history
  • Loading branch information
tweirtx committed Jan 8, 2024
1 parent 36125d6 commit 65a8424
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dozer/cogs/moderation.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ def get_name(target_id):
@bot_has_permissions(ban_members=True)
async def ban(self, ctx: DozerContext, user_mention: discord.User, *, reason: str = "No reason provided"):
"""Bans the user mentioned."""
await ctx.defer()
try:
orig_channel = ctx.interaction.followup if ctx.interaction else ctx.channel
await self.mod_log(actor=ctx.author, action="banned", target=user_mention, reason=reason,
Expand Down

0 comments on commit 65a8424

Please sign in to comment.