Skip to content

Commit b880c12

Browse files
author
ekzyis
committed
Add replies
1 parent f85af6a commit b880c12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

notifications.go

+8
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ func (c *Client) Mentions() ([]Notification, error) {
9393
)
9494
}
9595

96+
func (c *Client) Replies() ([]Notification, error) {
97+
return c.filterNotifications(
98+
func(n Notification) bool {
99+
return n.Type == "Reply"
100+
},
101+
)
102+
}
103+
96104
func (c *Client) filterNotifications(f func(Notification) bool) ([]Notification, error) {
97105
var (
98106
n *NotificationsCursor

0 commit comments

Comments
 (0)