1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2025-12-07 20:51:42 +00:00

api: Add omitempty to SearchThreadsData (#489)

* fix(api): add omitempty to SearchThreadsData

* invalid tag
This commit is contained in:
Ayyan 2025-09-27 20:42:12 -04:00 committed by GitHub
parent 43b5c9dcad
commit a891a653eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -670,19 +670,17 @@ const (
type (
SearchThreadsData struct {
Name string `schema:"name,omitempty"`
Slop int `schema:"slop,omitempty"`
Tag []discord.Snowflake `schema:"tag,omitempty"`
// Default: MatchSome
TagSetting ThreadTagSetting `schema:"tag_setting,omitempty"`
Archived bool `schema:"archived,omitempty"`
SortBy ThreadSortBy `schema:"sort_by,omitempty"`
// Default: desc
SortOrder ThreadSortOrder `schema:"sort_order"`
Limit int `schema:"limit"`
Offset int `schema:"offset,omitempty"`
MaxID discord.Snowflake `schema:"max_id,omitempty"`
MinID discord.Snowflake `schema:"min_id,omitempty"`
Name string `schema:"name,omitempty"`
Slop int `schema:"slop,omitempty"`
Tag []discord.Snowflake `schema:"tag,omitempty"`
TagSetting ThreadTagSetting `schema:"tag_setting,omitempty"`
Archived bool `schema:"archived,omitempty"`
SortOrder ThreadSortOrder `schema:"sort_order,omitempty"`
SortBy ThreadSortBy `schema:"sort_by,omitempty"`
Limit int `schema:"limit,omitempty"`
MaxID discord.Snowflake `schema:"max_id,omitempty"`
MinID discord.Snowflake `schema:"min_id,omitempty"`
Offset int `schema:"offset,omitempty"`
}
SearchThreadsResponse struct {