mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
feat: custom help url (#476)
* feat: custom help url * chore: formatting * goddamn
This commit is contained in:
parent
1a314bf4d9
commit
21e2e58c90
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
|
import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
|
||||||
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
import { commandTypeHelpers as ct } from "../../../commandTypes.js";
|
||||||
|
import { env } from "../../../env.js";
|
||||||
import { createChunkedMessage } from "../../../utils.js";
|
import { createChunkedMessage } from "../../../utils.js";
|
||||||
import { utilityCmd } from "../types.js";
|
import { utilityCmd } from "../types.js";
|
||||||
|
|
||||||
|
@ -62,7 +63,7 @@ export const HelpCmd = utilityCmd({
|
||||||
let snippet = `**${prefix}${trigger}**`;
|
let snippet = `**${prefix}${trigger}**`;
|
||||||
if (description) snippet += `\n${description}`;
|
if (description) snippet += `\n${description}`;
|
||||||
if (usage) snippet += `\nBasic usage: \`${usage}\``;
|
if (usage) snippet += `\nBasic usage: \`${usage}\``;
|
||||||
snippet += `\n<https://zeppelin.gg/docs/plugins/${plugin.blueprint.name}/usage#command-${commandSlug}>`;
|
snippet += `\n<${env.DASHBOARD_URL}/docs/plugins/${plugin.blueprint.name}/usage#command-${commandSlug}>`;
|
||||||
|
|
||||||
return snippet;
|
return snippet;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue