mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
Fix code block escape in embed edit logs
This commit is contained in:
parent
6adcd1b583
commit
8d73e1160f
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ export class LogsPlugin extends ZeppelinPlugin<ILogsPluginConfig> {
|
||||||
|
|
||||||
// Rich embed
|
// Rich embed
|
||||||
const richEmbed = (msg.data.embeds || []).find(e => (e as Embed).type === "rich");
|
const richEmbed = (msg.data.embeds || []).find(e => (e as Embed).type === "rich");
|
||||||
if (richEmbed) result += "Embed:```" + JSON.stringify(richEmbed) + "```";
|
if (richEmbed) result += "Embed:```" + disableCodeBlocks(JSON.stringify(richEmbed)) + "```";
|
||||||
|
|
||||||
// Attachments
|
// Attachments
|
||||||
if (msg.data.attachments) {
|
if (msg.data.attachments) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue