mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 13:43:06 -04:00
update help styling with modern markdown
This commit is contained in:
parent
10218dce80
commit
0a9c904be6
1 changed files with 9 additions and 11 deletions
|
@ -9,7 +9,7 @@ const { hasFeature } = require('#utils/testing');
|
|||
|
||||
function createHelpPage(context, title, contents, descriptions) {
|
||||
return page(createEmbed("default", context, {
|
||||
description: `${title}\n\n` +
|
||||
description: `### ${title}\n\n` +
|
||||
renderCommandList(contents, descriptions) +
|
||||
`\n\n${icon("question")} Use ${smallPill(`${DEFAULT_PREFIXES[0]}help <command>`)} to view more information about a command.` +
|
||||
`\n${icon("discord")} Need help with anything else? ${DISCORD_INVITES.help}`
|
||||
|
@ -37,7 +37,7 @@ function renderCommandList(commands, descriptions, limit) {
|
|||
}
|
||||
|
||||
function createCommandPage(context, prefix, command, slashCommands) {
|
||||
alias = ' '
|
||||
alias = '';
|
||||
if (command.aliases.length >= 1) {
|
||||
for (const al of command.aliases) alias += smallPill(al)
|
||||
alias += "\n"
|
||||
|
@ -61,7 +61,7 @@ function createCommandPage(context, prefix, command, slashCommands) {
|
|||
}
|
||||
|
||||
let cPage = createEmbed("default", context, {
|
||||
description: `${icon("slash")} ${smallPill(command.name)}\n${alias}${explicit}\n${command.metadata.description}`,
|
||||
description: `### ${icon("slash")} ${command.name}\n${alias}${explicit}\n${command.metadata.description}`,
|
||||
fields: []
|
||||
})
|
||||
|
||||
|
@ -108,14 +108,12 @@ function createCommandPage(context, prefix, command, slashCommands) {
|
|||
|
||||
// These categories will be displayed to users, add them in the correct order
|
||||
const categories = {
|
||||
"core": `${iconPill("home", "Core Commands")}`,
|
||||
"info": `${iconPill("information", "Information Commands")}`,
|
||||
"search": `${iconPill("mag", "Search Commands")}`,
|
||||
"utils": `${iconPill("tools", "Utility Commands")}`,
|
||||
"fun": `${iconPill("stars", "Fun Commands")}`,
|
||||
// Image Manipulation commands have been sunset as of 09/09/2024
|
||||
//"image": `${iconPill("image", "Image Commands")}`,
|
||||
"mod": `${iconPill("shield", "Moderation Commands")}`
|
||||
"core": `${icon("home")} Core Commands`,
|
||||
"info": `${icon("information")} Information Commands`,
|
||||
"search": `${icon("mag")} Search Commands`,
|
||||
"utils": `${icon("tools")} Utility Commands`,
|
||||
"fun": `${icon("stars")} Fun Commands`,
|
||||
"mod": `${icon("shield")} "Moderation Command}`
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue