summaryrefslogtreecommitdiff
path: root/internal/packet/types.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-02-04 18:52:57 +0200
committerKyren223 <Kyren223@proton.me>2025-02-04 18:52:57 +0200
commiteab8cba4bb37491d5c3b497b98faa7029e7b7300 (patch)
tree15f9994c423d18f0492f97c43bf71a0793e1e6a4 /internal/packet/types.go
parent42a1ee12c1e64955e6ddd38c34b122c7c10a93f2 (diff)
Refactored the way notifications work on the server-side, next commit
fixes the client to use this new system
Diffstat (limited to 'internal/packet/types.go')
-rw-r--r--internal/packet/types.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/packet/types.go b/internal/packet/types.go
index 27fd028..bb2b013 100644
--- a/internal/packet/types.go
+++ b/internal/packet/types.go
@@ -234,13 +234,13 @@ func (m *GetBannedMembers) Type() PacketType {
return PacketGetBannedMembers
}
-type GetNotifications struct {
- Source []snowflake.ID
- LastReadId []snowflake.ID
+type SetLastReadMessages struct {
+ Source []snowflake.ID
+ LastRead []int64
}
-func (m *GetNotifications) Type() PacketType {
- return PacketGetNotifications
+func (m *SetLastReadMessages) Type() PacketType {
+ return PacketSetLastReadMessages
}
type NotificationsInfo struct {