From 1105e2f601bc00e56f6747eb860c629ed72992db Mon Sep 17 00:00:00 2001 From: Maiko Sinkyaet Tan Date: Tue, 6 Aug 2024 16:33:20 +0800 Subject: [PATCH] fix(help): missing "Examples :" text before examples --- plugins/common/help/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/common/help/src/index.ts b/plugins/common/help/src/index.ts index a955a47b1..08c3dc6c3 100644 --- a/plugins/common/help/src/index.ts +++ b/plugins/common/help/src/index.ts @@ -276,7 +276,7 @@ async function showHelp(command: Command, session: Session<'authority'>, config: output.push(session.text('.command-examples'), ...command._examples.map(example => ' ' + example)) } else { const text = session.text([`commands.${command.name}.examples`, ''], command.config.params) - if (text) output.push(...text.split('\n').map(line => ' ' + line)) + if (text) output.push(session.text('.command-examples'), ...text.split('\n').map(line => ' ' + line)) } output.push(...await formatCommands('.subcommand-prolog', session, command.children, config))