diff options
-rw-r--r-- | src/lib/extensions/discord-akairo/BushClientUtil.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts index 498b9cb..a50cd61 100644 --- a/src/lib/extensions/discord-akairo/BushClientUtil.ts +++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts @@ -870,6 +870,7 @@ export class BushClientUtil extends ClientUtil { */ public async codeblock(code: string, length: number, language?: CodeBlockLang, substr = false): Promise<string> { let hasteOut = ''; + code = util.discord.escapeCodeBlock(code); const prefix = `\`\`\`${language}\n`; const suffix = '\n```'; language = language ?? 'txt'; |