( commandName: string, reason: SlashCommandBusyReason, )
| 141 | } |
| 142 | |
| 143 | export function slashBusyMessage( |
| 144 | commandName: string, |
| 145 | reason: SlashCommandBusyReason, |
| 146 | ): string { |
| 147 | if (reason === 'streaming') { |
| 148 | return `Cannot /${commandName} while streaming — press Esc or Ctrl-C first.`; |
| 149 | } |
| 150 | return `Cannot /${commandName} while compacting — wait for compaction to finish first.`; |
| 151 | } |
no outgoing calls
no test coverage detected