Skip to content

Commit

Permalink
fix(help): command description translation
Browse files Browse the repository at this point in the history
  • Loading branch information
ZRunner committed Jan 27, 2024
1 parent b7751ae commit a58dcf7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/help_cmd/txt_cmd_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ async def get_command_description(ctx: MyContext, command: commands.Command):
if len(desc.split('\n')) > 1:
long_desc = '\n'.join(desc.split('\n')[1:]).strip()
desc = f"{short_desc}\n\n{long_desc}"
else:
desc = short_desc
if desc is None:
desc = await ctx.bot._(ctx.channel, "help.no-desc-cmd")
return desc, examples, doc
Expand Down

0 comments on commit a58dcf7

Please sign in to comment.