Add replies

This commit is contained in:
ekzyis 2024-09-23 03:41:10 +02:00
parent f85af6abe3
commit b880c1256e
1 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,14 @@ func (c *Client) Mentions() ([]Notification, error) {
) )
} }
func (c *Client) Replies() ([]Notification, error) {
return c.filterNotifications(
func(n Notification) bool {
return n.Type == "Reply"
},
)
}
func (c *Client) filterNotifications(f func(Notification) bool) ([]Notification, error) { func (c *Client) filterNotifications(f func(Notification) bool) ([]Notification, error) {
var ( var (
n *NotificationsCursor n *NotificationsCursor