Unregister a command by name.
(&mut self, name: &str)
| 147 | |
| 148 | /// Unregister a command by name. |
| 149 | pub fn unregister(&mut self, name: &str) -> Option<Arc<dyn SlashCommand>> { |
| 150 | self.commands.remove(name) |
| 151 | } |
| 152 | |
| 153 | /// Check if input is a slash command. |
| 154 | pub fn is_command(input: &str) -> bool { |