()
| 20 | |
| 21 | impl SlashCommandPopup { |
| 22 | pub fn new() -> Self { |
| 23 | Self { |
| 24 | registry: CommandRegistry::new(), |
| 25 | query: String::new(), |
| 26 | filtered: Vec::new(), |
| 27 | state: ListState::default(), |
| 28 | open: false, |
| 29 | selected_action: None, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | pub fn open(&mut self) { |
| 34 | self.query = String::new(); |