add filtered to Status

This commit is contained in:
Rasmus Lindroth 2022-12-30 11:03:08 +01:00
parent aa9c1859b5
commit e86f463667
3 changed files with 73 additions and 30 deletions

View file

@ -19,6 +19,18 @@ type Filter struct {
Irreversible bool `json:"irreversible"`
}
type FilterResult struct {
Filter struct {
ID string `json:"id"`
Title string `json:"title"`
Context []string `json:"context"`
ExpiresAt time.Time `json:"expires_at"`
FilterAction string `json:"filter_action"`
} `json:"filter"`
KeywordMatches []string `json:"keyword_matches"`
StatusMatches []string `json:"status_matches"`
}
// GetFilters returns all the filters on the current account.
func (c *Client) GetFilters(ctx context.Context) ([]*Filter, error) {
var filters []*Filter