()
| 110 | |
| 111 | impl CommandRegistry { |
| 112 | pub fn new() -> Self { |
| 113 | let mut registry = Self { |
| 114 | commands: HashMap::new(), |
| 115 | by_category: HashMap::new(), |
| 116 | }; |
| 117 | registry.register_all(); |
| 118 | registry |
| 119 | } |
| 120 | |
| 121 | fn register(&mut self, cmd: SlashCommand) { |
| 122 | let name = cmd.name.clone(); |
nothing calls this directly
no test coverage detected