mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -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:
|
if (reason_type := registered_reasons.get(reason.lower())) is None:
|
||||||
msg = _("That is not a registered reason!")
|
msg = _("That is not a registered reason!")
|
||||||
if custom_allowed:
|
if custom_allowed:
|
||||||
|
if points <= 0:
|
||||||
|
return await ctx.send(_("You cannot apply 0 or less points."))
|
||||||
reason_type = {"description": reason, "points": points}
|
reason_type = {"description": reason, "points": points}
|
||||||
else:
|
else:
|
||||||
# logic taken from `[p]permissions canrun`
|
# logic taken from `[p]permissions canrun`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user