mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-21 10:17:59 -05:00
fix: use clean prefix in code blocks (#3591)
This commit is contained in:
@@ -280,7 +280,7 @@ class Warnings(commands.Cog):
|
||||
msg += " " + _(
|
||||
"Do `{prefix}warningset allowcustomreasons true` to enable custom "
|
||||
"reasons."
|
||||
).format(prefix=ctx.prefix)
|
||||
).format(prefix=ctx.clean_prefix)
|
||||
return await ctx.send(msg)
|
||||
else:
|
||||
reason_type = registered_reasons[reason.lower()]
|
||||
@@ -322,7 +322,7 @@ class Warnings(commands.Cog):
|
||||
reason=_("{description}\nPoints: {points}").format(
|
||||
description=reason_type["description"], points=reason_type["points"]
|
||||
),
|
||||
prefix=ctx.prefix,
|
||||
prefix=ctx.clean_prefix,
|
||||
user=user.id,
|
||||
message=ctx.message.id,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user