fix: use clean prefix in code blocks (#3591)

This commit is contained in:
jack1142
2020-02-28 21:23:13 +01:00
committed by GitHub
parent 7b042be9db
commit eedec4ff02
12 changed files with 42 additions and 38 deletions

View File

@@ -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,
)