Skip to content

Commit 13ac33f

Browse files
authored
api: Add missing query parameter to SearchData (#403)
1 parent 3cb993a commit 13ac33f

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

api/search.go

+11-10
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,17 @@ import (
66
)
77

88
type SearchData struct {
9-
Offset uint `schema:"offset,omitempty"`
10-
Content string `schema:"content,omitempty"`
11-
Has string `schema:"has,omitempty"`
12-
SortBy string `schema:"sort_by,omitempty"`
13-
SortOrder string `schema:"sort_order,omitempty"`
14-
ChannelID discord.ChannelID `schema:"channel_id,omitempty"`
15-
AuthorID discord.UserID `schema:"author_id,omitempty"`
16-
Mentions discord.UserID `schema:"mentions,omitempty"`
17-
MaxID discord.MessageID `schema:"max_id,omitempty"`
18-
MinID discord.MessageID `schema:"min_id,omitempty"`
9+
Offset uint `schema:"offset,omitempty"`
10+
Content string `schema:"content,omitempty"`
11+
Has string `schema:"has,omitempty"`
12+
SortBy string `schema:"sort_by,omitempty"`
13+
SortOrder string `schema:"sort_order,omitempty"`
14+
ChannelID discord.ChannelID `schema:"channel_id,omitempty"`
15+
AuthorID discord.UserID `schema:"author_id,omitempty"`
16+
Mentions discord.UserID `schema:"mentions,omitempty"`
17+
MaxID discord.MessageID `schema:"max_id,omitempty"`
18+
MinID discord.MessageID `schema:"min_id,omitempty"`
19+
IncludeNSFW bool `schema:"include_nsfw,omitempty"`
1920
}
2021

2122
type SearchResponse struct {

0 commit comments

Comments
 (0)