Skip to main content

parse

Function parse 

Source
pub fn parse(content: &str) -> Mentions
Expand description

The mentions content shows: <@id> (and Discord’s <@!id>) for members, <@&id> for roles, @everyone. Each id once, in order, at most 50 members and 20 roles; malformed ids are skipped. Use it on text this member wrote, not on text from someone else.