twilight-mention
is a utility crate for the Discord [twilight-rs
]
ecosystem to mention its model types and parse those mentions.
With this library, you can create mentions for various types, such as users, emojis, roles, members, or channels.
Create a mention formatter for a user ID, and then format it in a message:
```rust use twilightmention::Mention; use twilightmodel::id::UserId;
let userid = UserId::new(123).expect("non zero"); let message = format!("Hey there, {}!", userid.mention()); ```