pub fn parse_command_text_for_bot(
text: &str,
bot_username: Option<&str>,
) -> Option<CommandData>Expand description
Parses a slash command from raw message text with optional bot-username targeting.
When a command contains @botname, it is accepted only if bot_username
is provided and matches case-insensitively.