Skip to content

Commit

Permalink
reactions.list
Browse files Browse the repository at this point in the history
  • Loading branch information
candiduslynx committed Apr 26, 2024
1 parent 0c1ba09 commit a47d659
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ const (

// ListReactionsParameters is the inputs to find all reactions by a user.
type ListReactionsParameters struct {
User string
Count int
Page int
Full bool
User string
TeamID string
Count int
Page int
Full bool
}

// NewListReactionsParameters initializes the inputs to find all reactions
Expand Down Expand Up @@ -246,6 +247,9 @@ func (api *Client) ListReactionsContext(ctx context.Context, params ListReaction
if params.User != DEFAULT_REACTIONS_USER {
values.Add("user", params.User)
}
if params.TeamID != "" {
values.Add("team_id", params.TeamID)
}
if params.Count != DEFAULT_REACTIONS_COUNT {
values.Add("count", strconv.Itoa(params.Count))
}
Expand Down

0 comments on commit a47d659

Please sign in to comment.