Fixed code block missing first line

This commit is contained in:
KaKi87 2020-05-07 18:50:58 +02:00
parent c0813bea89
commit 55e0103f11
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ module.exports = {
twoDigits: number => number.toLocaleString('en-US', { minimumIntegerDigits: 2, useGrouping: false }),
capitalize: string => string[0].toUpperCase() + string.slice(1).toLowerCase(),
code: string => `\`${string}\``,
codeBlock: (content, lang) => `\`\`\`${lang ? `${lang}\n` : ''}${content}\`\`\``,
codeBlock: (content, lang) => `\`\`\`${lang || ''}\n${content}\`\`\``,
mention: (user, raw) => `<@${raw ? user.id : user}> ${raw ? `\`[${user.username}#${user.discriminator}]\`` : ''}`,
channel: chanId => `<#${chanId}>`,
randomHexColor: () => '#' + Math.floor(Math.random() * 16777215).toString(16),