diff options
Diffstat (limited to 'internal/packet')
| -rw-r--r-- | internal/packet/packet.go | 6 | ||||
| -rw-r--r-- | internal/packet/types.go | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/internal/packet/packet.go b/internal/packet/packet.go index 72ff4b9..c8a8e64 100644 --- a/internal/packet/packet.go +++ b/internal/packet/packet.go @@ -80,7 +80,7 @@ const ( PacketTrustUser PacketTrustInfo - PacketGetNotifications + PacketSetLastReadMessages PacketNotificationsInfo PacketMax @@ -248,8 +248,8 @@ func (p Packet) DecodedPayload() (Payload, error) { case PacketTrustInfo: payload = &TrustInfo{} - case PacketGetNotifications: - payload = &GetNotifications{} + case PacketSetLastReadMessages: + payload = &SetLastReadMessages{} case PacketNotificationsInfo: payload = &NotificationsInfo{} 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 { |
