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

escapeSpoiler

export declare function escapeSpoiler(text: string): string;
export declare function escapeSpoiler(text: string): string;
Escapes spoiler markdown in a string.
NameTypeOptionalDescription
textstringNoContent to escape