3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 08:15:03 +00:00

Add newline after ``` so single words dont get seen as language

This commit is contained in:
Dark 2021-02-05 06:00:47 +01:00
parent 6f545f5c4a
commit 41b18eb4bf
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -1183,7 +1183,7 @@ export async function confirm(bot: Client, channel: TextableChannel, userId: str
export function messageSummary(msg: SavedMessage) {
// Regular text content
let result = "```" + (msg.data.content ? disableCodeBlocks(msg.data.content) : "<no text content>") + "```";
let result = "```\n" + (msg.data.content ? disableCodeBlocks(msg.data.content) : "<no text content>") + "```";
// Rich embed
const richEmbed = (msg.data.embeds || []).find(e => (e as Embed).type === "rich");