Skip to main content

strikethrough

Function strikethrough 

Source
pub const fn strikethrough<T: Display>(content: T) -> Strikethrough<T>
Expand description

Strikes content through: ~~content~~.

discord.js counterpart: strikethrough.

ยงExamples

use djs_formatters::strikethrough;

assert_eq!(strikethrough("old").to_string(), "~~old~~");