Skip to content

Commit

Permalink
Merge branch 'FRCDiscord:master' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
skruglov2023 authored Feb 16, 2024
2 parents 4bdcba9 + fdf5b42 commit dd7d221
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 dd7d221

Please sign in to comment.