mirror of
https://github.com/miaowware/qrm2.git
synced 2026-06-02 22:14:53 -04:00
fix displaying multiple prefixes, add option to display ?help in status (#249)
* fix displaying multiple prefixes, add option to display ?help in status Fixes #229 Co-authored-by: 0x5c <dev@0x5c.io>
This commit is contained in:
+3
-3
@@ -46,9 +46,9 @@ class QrmHelpCommand(commands.HelpCommand):
|
||||
if parent:
|
||||
fmt = f"{parent} {fmt}"
|
||||
alias = fmt
|
||||
return f"{opt.prefix}{alias} {command.signature}\n *Aliases:* {aliases}"
|
||||
return f"{opt.display_prefix}{alias} {command.signature}\n *Aliases:* {aliases}"
|
||||
alias = command.name if not parent else f"{parent} {command.name}"
|
||||
return f"{opt.prefix}{alias} {command.signature}"
|
||||
return f"{opt.display_prefix}{alias} {command.signature}"
|
||||
|
||||
async def send_error_message(self, error):
|
||||
embed = cmn.embed_factory(self.context)
|
||||
@@ -60,7 +60,7 @@ class QrmHelpCommand(commands.HelpCommand):
|
||||
async def send_bot_help(self, mapping):
|
||||
embed = cmn.embed_factory(self.context)
|
||||
embed.title = "qrm Help"
|
||||
embed.description = (f"For command-specific help and usage, use `{opt.prefix}help [command name]`."
|
||||
embed.description = (f"For command-specific help and usage, use `{opt.display_prefix}help [command name]`."
|
||||
" Many commands have shorter aliases.")
|
||||
mapping = await mapping
|
||||
|
||||
|
||||
Reference in New Issue
Block a user