From b880c1256e13c3519f18c1b0f5de659b4aa78858 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Mon, 23 Sep 2024 03:41:10 +0200 Subject: [PATCH] Add replies --- notifications.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/notifications.go b/notifications.go index 57015bc..42c307b 100644 --- a/notifications.go +++ b/notifications.go @@ -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) { var ( n *NotificationsCursor