()
| 20 | } |
| 21 | |
| 22 | func (s SlashCommandSpec) HelpLabel() string { |
| 23 | names := s.Names() |
| 24 | if len(names) == 0 { |
| 25 | return "" |
| 26 | } |
| 27 | label := names[0] |
| 28 | for _, name := range names[1:] { |
| 29 | label += ", " + name |
| 30 | } |
| 31 | return label |
| 32 | } |
| 33 | |
| 34 | var BuiltinCommandSpecs = []SlashCommandSpec{ |
| 35 | {Primary: "/help", Description: "Show this help"}, |
no test coverage detected