Skip to content

Commit

Permalink
Update redbot/cogs/warnings/warnings.py
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Oliveira <[email protected]>
  • Loading branch information
Ascensionn and Flame442 authored Dec 2, 2024
1 parent b931471 commit 39afcde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redbot/cogs/warnings/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ async def warn(
await confirm.message.add_reaction("\N{WHITE HEAVY CHECK MARK}")

except discord.Forbidden:
await ctx.send("I don't have permission to ban this user.")
await ctx.send(_("I don't have permission to ban this user."))
except discord.HTTPException:
await ctx.send("An error occurred while trying to ban the user.")
await ctx.send(_("An error occurred while trying to ban the user."))
return

if member == ctx.author:
Expand Down

0 comments on commit 39afcde

Please sign in to comment.