mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Warnings] (#5120)
This commit is contained in:
parent
5ead38c284
commit
b2db0674d5
@ -395,6 +395,8 @@ class Warnings(commands.Cog):
|
||||
if (reason_type := registered_reasons.get(reason.lower())) is None:
|
||||
msg = _("That is not a registered reason!")
|
||||
if custom_allowed:
|
||||
if points <= 0:
|
||||
return await ctx.send(_("You cannot apply 0 or less points."))
|
||||
reason_type = {"description": reason, "points": points}
|
||||
else:
|
||||
# logic taken from `[p]permissions canrun`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user