From b931471c3e6b4e1fa3cc936d71133cb2a904485e Mon Sep 17 00:00:00 2001 From: Ascensionn <87586499+Ascensionn@users.noreply.github.com> Date: Sun, 1 Dec 2024 20:56:54 -0500 Subject: [PATCH] Update redbot/cogs/warnings/warnings.py Co-authored-by: Michael Oliveira <34169552+Flame442@users.noreply.github.com> --- redbot/cogs/warnings/warnings.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/redbot/cogs/warnings/warnings.py b/redbot/cogs/warnings/warnings.py index a4b7a12b016..0efdfe2295d 100644 --- a/redbot/cogs/warnings/warnings.py +++ b/redbot/cogs/warnings/warnings.py @@ -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."))