(description: string)
| 214 | const SKILL_MENU_DESCRIPTION_MAX_LENGTH = 50 |
| 215 | |
| 216 | function truncateDescription(description: string): string { |
| 217 | if (description.length <= SKILL_MENU_DESCRIPTION_MAX_LENGTH) { |
| 218 | return description |
| 219 | } |
| 220 | return description.slice(0, SKILL_MENU_DESCRIPTION_MAX_LENGTH - 1) + '…' |
| 221 | } |
| 222 | |
| 223 | /** |
| 224 | * Returns SLASH_COMMANDS merged with skill commands. |
no outgoing calls
no test coverage detected