Skip to main content

linked_role_mention

Function linked_role_mention 

Source
pub const fn linked_role_mention(id: RoleId) -> LinkedRoleMention
Expand description

Links to the linked role id; clicking it opens the connection dialog: <id:linked-roles:165511591545143296>.

discord.js counterpart: linkedRoleMention.

ยงExamples

use djs_formatters::linked_role_mention;
use djs_model::id::RoleId;

assert_eq!(
    linked_role_mention(RoleId::new(165_511_591_545_143_296)).to_string(),
    "<id:linked-roles:165511591545143296>"
);