summaryrefslogtreecommitdiff
path: root/internal/packet/packet.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/packet/packet.go')
-rw-r--r--internal/packet/packet.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/packet/packet.go b/internal/packet/packet.go
index e94086b..fb3e7e8 100644
--- a/internal/packet/packet.go
+++ b/internal/packet/packet.go
@@ -86,6 +86,9 @@ const (
PacketBlockUser
PacketBlockInfo
+ PacketGetUsers
+ PacketUsersInfo
+
PacketMax
)
@@ -261,6 +264,11 @@ func (p Packet) DecodedPayload() (Payload, error) {
case PacketBlockInfo:
payload = &BlockInfo{}
+ case PacketGetUsers:
+ payload = &GetUsers{}
+ case PacketUsersInfo:
+ payload = &UsersInfo{}
+
default:
assert.Never("unexpected packet.PacketType", "type", p.Type())
}