Skip to content

Commit

Permalink
update made to the warn command for users who have left the server be…
Browse files Browse the repository at this point in the history
…fore they can be warned
  • Loading branch information
Ascensionn committed Nov 30, 2024
1 parent eef6a42 commit a2d83f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redbot/cogs/warnings/warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a2d83f5

Please sign in to comment.