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 MAX_MEMBERS members and MAX_ROLES roles; malformed ids are skipped. Use it only on text the bot wrote: on text from members it would mention whoever they named.