Skip to content

Commit 1adbacf

Browse files
RealCyGuyTaaku18
andauthored
Strip whitespace in help command titles (#3271)
* strip help command title * Update changelog --------- Co-authored-by: Taku <[email protected]>
1 parent cc21725 commit 1adbacf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
1414
- Reply not being forwarded from DM. (PR [#3239](https://github.com/modmail-dev/modmail/pull/3239))
1515
- Cleanup imports after removing/unloading a plugin. ([PR #3226](https://github.com/modmail-dev/Modmail/pull/3226))
1616
- Fixed a syntactic error in the close message when a thread is closed after a certain duration. ([PR #3233](https://github.com/modmail-dev/Modmail/pull/3233))
17+
- Removed an extra space in the help command title when the command has no parameters. ([PR #3271](https://github.com/modmail-dev/Modmail/pull/3271))
1718

1819
### Added
1920
- `?log key <key>` to retrieve the log link and view a preview using a log key. ([PR #3196](https://github.com/modmail-dev/Modmail/pull/3196))

cogs/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async def _get_help_embed(self, topic):
142142
perm_level = "NONE"
143143

144144
embed = discord.Embed(
145-
title=f"`{self.get_command_signature(topic)}`",
145+
title=f"`{self.get_command_signature(topic).strip()}`",
146146
color=self.context.bot.main_color,
147147
description=self.process_help_msg(topic.help),
148148
)

0 commit comments

Comments
 (0)