Skip to main content

channel_mention

Function channel_mention 

Source
pub const fn channel_mention(id: ChannelId) -> ChannelMention
Expand description

Mentions the channel id as a clickable link: <#103735883630395392>.

discord.js counterpart: channelMention.

ยงExamples

use djs_formatters::channel_mention;
use djs_model::id::ChannelId;

let rules = ChannelId::new(103_735_883_630_395_392);
assert_eq!(channel_mention(rules).to_string(), "<#103735883630395392>");