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 198d1e7 commit b931471
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions redbot/cogs/warnings/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,7 @@ async def warn(
view=confirm,
)
await confirm.wait()
if confirm.result is None:
await ctx.send("No response received within 10 seconds. No action taken.")
return
elif confirm.result:
if confirm.result:
await ctx.guild.ban(user_obj, reason=reason)
else:
confirm.message = await ctx.send(_("No action taken."))
Expand Down

0 comments on commit b931471

Please sign in to comment.