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

escapeMarkdown

export declare function escapeMarkdown(text: string, options?: EscapeMarkdownOptions): string;
export declare function escapeMarkdown(text: string, options?: EscapeMarkdownOptions): string;
Escapes any Discord-flavored markdown in a string.
NameTypeOptionalDescription
textstringNoContent to escape
optionsEscapeMarkdownOptionsYesOptions for escaping the markdown