mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
feat: custom help url
This commit is contained in:
parent
b28ca170ed
commit
87d0f33352
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@ import { LoadedGuildPlugin, PluginCommandDefinition } from "knub";
|
|||
import { commandTypeHelpers as ct } from "../../../commandTypes";
|
||||
import { createChunkedMessage } from "../../../utils";
|
||||
import { utilityCmd } from "../types";
|
||||
import { env } from "../../../env"
|
||||
|
||||
export const HelpCmd = utilityCmd({
|
||||
trigger: "help",
|
||||
|
@ -62,7 +63,7 @@ export const HelpCmd = utilityCmd({
|
|||
let snippet = `**${prefix}${trigger}**`;
|
||||
if (description) snippet += `\n${description}`;
|
||||
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;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue