Skip to content

Commit

Permalink
Strip whitespace in help command titles (modmail-dev#3271)
Browse files Browse the repository at this point in the history
* strip help command title

* Update changelog

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
  • Loading branch information
2 people authored and raidensakura committed Apr 10, 2024
1 parent e6c36b2 commit 23ea482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
- Reply not being forwarded from DM. (PR [#3239](https://github.com/modmail-dev/modmail/pull/3239))
- Cleanup imports after removing/unloading a plugin. ([PR #3226](https://github.com/modmail-dev/Modmail/pull/3226))
- 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))
- 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))

### Added
- `?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))
Expand Down
2 changes: 1 addition & 1 deletion cogs/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ async def _get_help_embed(self, topic):
perm_level = "NONE"

embed = discord.Embed(
title=f"`{self.get_command_signature(topic)}`",
title=f"`{self.get_command_signature(topic).strip()}`",
color=self.context.bot.main_color,
description=self.process_help_msg(topic.help),
)
Expand Down

0 comments on commit 23ea482

Please sign in to comment.