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:
parent
43b5c9dcad
commit
a891a653eb
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue