Skip to main content

spoiler

Function spoiler 

Source
pub const fn spoiler<T: Display>(content: T) -> Spoiler<T>
Expand description

Hides content until it is clicked: ||content||.

discord.js counterpart: spoiler.

ยงExamples

use djs_formatters::spoiler;

assert_eq!(spoiler("the ending").to_string(), "||the ending||");