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

Add newline after ``` so single words dont get seen as language (#152)

This commit is contained in:
Nils 2021-02-13 18:57:48 +01:00 committed by GitHub
parent 513755636e
commit 4584fa4e87
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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");