diff --git a/packages/discord.js/src/util/Util.js b/packages/discord.js/src/util/Util.js index dc722e13f636..44c0e1e6a4b6 100644 --- a/packages/discord.js/src/util/Util.js +++ b/packages/discord.js/src/util/Util.js @@ -140,6 +140,7 @@ function escapeMarkdown( }) .join(inlineCode ? '\\`' : '`'); } + if (escape) text = escapeEscape(text); if (inlineCode) text = escapeInlineCode(text); if (codeBlock) text = escapeCodeBlock(text); if (italic) text = escapeItalic(text); @@ -147,7 +148,6 @@ function escapeMarkdown( if (underline) text = escapeUnderline(text); if (strikethrough) text = escapeStrikethrough(text); if (spoiler) text = escapeSpoiler(text); - if (escape) text = escapeEscape(text); if (heading) text = escapeHeading(text); if (bulletedList) text = escapeBulletedList(text); if (numberedList) text = escapeNumberedList(text);