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

escapeHeading

export declare function escapeHeading(text: string): string;
export declare function escapeHeading(text: string): string;
Escapes heading characters in a string.
NameTypeOptionalDescription
textstringNoContent to escape