pub fn parse(content: &str, bot_id: UserId) -> Option<Command>Expand description
Parses a message into a Command if it starts with a mention of bot_id.
Returns None when the message doesn’t start with the bot’s own mention
(leading whitespace aside) — this is the threshold that keeps a mention
appearing mid-message from being treated as a command.