Skip to content

Commit

Permalink
api: allow omission of Limit on *ArchivedThreadsBefore
Browse files Browse the repository at this point in the history
  • Loading branch information
samhza committed Oct 2, 2022
1 parent dc54548 commit dd0a816
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ func (c *Client) PublicArchivedThreadsBefore(

var param struct {
Before string `schema:"before,omitempty"`
Limit uint `schema:"limit"`
Limit uint `schema:"limit,omitempty"`
}

if before.IsValid() {
Expand Down Expand Up @@ -559,7 +559,7 @@ func (c *Client) PrivateArchivedThreadsBefore(

var param struct {
Before string `schema:"before,omitempty"`
Limit uint `schema:"limit"`
Limit uint `schema:"limit,omitempty"`
}

if before.IsValid() {
Expand Down Expand Up @@ -587,7 +587,7 @@ func (c *Client) JoinedPrivateArchivedThreadsBefore(

var param struct {
Before string `schema:"before,omitempty"`
Limit uint `schema:"limit"`
Limit uint `schema:"limit,omitempty"`
}

if before.IsValid() {
Expand Down

0 comments on commit dd0a816

Please sign in to comment.