From 2d322e4764701705db851e1bffc396eb2f4cef05 Mon Sep 17 00:00:00 2001 From: derpystuff <3515180-derpystuff@users.noreply.gitlab.com> Date: Mon, 3 Oct 2022 22:37:24 +0200 Subject: [PATCH] make pills bold --- commands/message/core/help.js | 8 ++++---- labscore/utils/markdown.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/message/core/help.js b/commands/message/core/help.js index f741372..c94a69a 100644 --- a/commands/message/core/help.js +++ b/commands/message/core/help.js @@ -12,7 +12,7 @@ function createHelpPage(context, title, contents, descriptions){ createEmbed("default", context, { description: `${title}\n\n` + renderCommandList(contents, descriptions) + - `\n\n${icon("question")} Use ${highlight(`${context.commandClient.prefixes.custom.first()}help `)} to view more information about a command.` + `\n\n${icon("question")} Use **${highlight(`${context.commandClient.prefixes.custom.first()}help `)}** to view more information about a command.` }) ] } @@ -29,10 +29,10 @@ function renderCommandList(commands, descriptions, limit){ if(desc.includes('\n')) desc = desc.split('\n')[0] if(desc.length >= 41) desc = desc.substr(0, 40) + '...' - render.push(` ​ ​ ​\` ${c}${' '.repeat(pad)}\` ​ ​ ​ ​ ​${desc}`) + render.push(` ​ ​ **​\` ${c}${' '.repeat(pad)}\`** ​ ​ ​ ​ ​${desc}`) i++ } - + if(limit && render.length > limit) render.splice(limit, 999) return render.join('\n') @@ -42,7 +42,7 @@ function createCommandPage(context, prefix, command){ alias = '' if(command.aliases.length >= 1) alias = '​ ​ ` ' + command.aliases.join(' ` ` ') + ' `\n' let page = createEmbed("default", context, { - description: `${icon("command")} \` ${command.name} \`\n${alias}\n${command.metadata.description}`, + description: `${icon("command")} **\` ${command.name} \`**\n${alias}\n${command.metadata.description}`, fields: [] }) diff --git a/labscore/utils/markdown.js b/labscore/utils/markdown.js index 4a4c582..676ab78 100644 --- a/labscore/utils/markdown.js +++ b/labscore/utils/markdown.js @@ -25,5 +25,5 @@ module.exports.timestamp = function(time, flag = "t"){ module.exports.iconPill = function(icon, content){ if(!ICONS[icon]) icon = "question" - return ICONS[icon] + ' ' + "` " + content + " `" + return ICONS[icon] + " **` " + content + " `**" } \ No newline at end of file