(groups []client.ReactionGroup)
| 59 | } |
| 60 | |
| 61 | func reactionGroupList(groups []client.ReactionGroup) string { |
| 62 | var parts []string |
| 63 | for _, g := range groups { |
| 64 | if g.TotalCount == 0 { |
| 65 | continue |
| 66 | } |
| 67 | emoji := reactionEmoji[g.Content] |
| 68 | if emoji == "" { |
| 69 | emoji = g.Content |
| 70 | } |
| 71 | parts = append(parts, fmt.Sprintf("%s %d", emoji, g.TotalCount)) |
| 72 | } |
| 73 | return strings.Join(parts, " • ") |
| 74 | } |
| 75 | |
| 76 | // ViewOptions holds the configuration for the view command. |
| 77 | type ViewOptions struct { |
no test coverage detected