mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 19:28:54 -05:00
Fixed [p] not being replaced in code blocks (#2846)
This commit is contained in:
parent
55ff9bedb7
commit
776c75ba86
@ -218,7 +218,16 @@ class RedHelpFormatter:
|
||||
)
|
||||
|
||||
to_page = "\n\n".join(
|
||||
filter(None, (description, signature[1:-1], command.help, subtext_header, subtext))
|
||||
filter(
|
||||
None,
|
||||
(
|
||||
description,
|
||||
signature[1:-1],
|
||||
command.help.replace("[p]", ctx.clean_prefix),
|
||||
subtext_header,
|
||||
subtext,
|
||||
),
|
||||
)
|
||||
)
|
||||
pages = [box(p) for p in pagify(to_page)]
|
||||
await self.send_pages(ctx, pages, embed=False)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user