You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

escapeCodeBlock

export declare function escapeCodeBlock(text: string): string;
export declare function escapeCodeBlock(text: string): string;
Escapes code block markdown in a string.
NameTypeOptionalDescription
textstringNoContent to escape