(host: SlashCommandHost, text: string)
| 161 | // --------------------------------------------------------------------------- |
| 162 | |
| 163 | export function dispatchInput(host: SlashCommandHost, text: string): void { |
| 164 | if (parseSlashInput(text) !== null) { |
| 165 | void executeSlashCommand(host, text); |
| 166 | return; |
| 167 | } |
| 168 | host.sendNormalUserInput(text); |
| 169 | } |
| 170 | |
| 171 | async function executeSlashCommand(host: SlashCommandHost, input: string): Promise<void> { |
| 172 | const parsedCommand = parseSlashInput(input); |
no test coverage detected