Skip to main content

hide_link_embed

Function hide_link_embed 

Source
pub const fn hide_link_embed<T: Display>(content: T) -> HideLinkEmbed<T>
Expand description

Links to url without an embed preview: <url>.

discord.js counterpart: hideLinkEmbed.

ยงExamples

use djs_formatters::hide_link_embed;

assert_eq!(hide_link_embed("https://example.com").to_string(), "<https://example.com>");