From a2d83f5070d473ca044f6db405155760794a96ba Mon Sep 17 00:00:00 2001 From: Ascensionn Date: Fri, 29 Nov 2024 21:57:23 -0500 Subject: [PATCH] update made to the warn command for users who have left the server before they can be warned --- redbot/cogs/warnings/warnings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/cogs/warnings/warnings.py b/redbot/cogs/warnings/warnings.py index a9efbf27303..8cda7bd3f10 100644 --- a/redbot/cogs/warnings/warnings.py +++ b/redbot/cogs/warnings/warnings.py @@ -427,9 +427,9 @@ async def warn( "The person you're trying to warn is equal or higher than you in the discord hierarchy, you cannot warn them." ) ) - guild_settings = await self.config.guild(ctx.guild).all() custom_allowed = guild_settings["allow_custom_reasons"] + reason_type = None async with self.config.guild(ctx.guild).reasons() as registered_reasons: if (reason_type := registered_reasons.get(reason.lower())) is None: