get_command_by_name

Function get_command_by_name 

Source
pub fn get_command_by_name<'a>(
    commands: &'a [SlashCommand],
    name: &str,
) -> Option<&'a SlashCommand>
Expand description

Returns a command by its name, or None if not found