summaryrefslogtreecommitdiff
path: root/internal/packet
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-01-27 20:10:48 +0200
committerKyren223 <Kyren223@proton.me>2025-01-27 20:10:48 +0200
commitcb214d740a9a73b2953163d85b21a2ffcee377f0 (patch)
treeaaab8b5ca36c5bf6ea9589468e61c08c26d0c614 /internal/packet
parentb2bd96e46b51b38a05e6cc6649058f8ad0a3b6e8 (diff)
Added pings to messages in frequencies
Diffstat (limited to 'internal/packet')
-rw-r--r--internal/packet/models.go7
-rw-r--r--internal/packet/types.go1
2 files changed, 8 insertions, 0 deletions
diff --git a/internal/packet/models.go b/internal/packet/models.go
index a61c61d..c26d93a 100644
--- a/internal/packet/models.go
+++ b/internal/packet/models.go
@@ -1,5 +1,7 @@
package packet
+import "github.com/kyren223/eko/pkg/snowflake"
+
const (
MaxNetworkNameBytes = 32
MaxIconBytes = 16
@@ -19,3 +21,8 @@ const (
PermReadWrite
PermMax
)
+
+const (
+ PingEveryone = snowflake.ID(0)
+ PingAdmins = snowflake.ID(1)
+)
diff --git a/internal/packet/types.go b/internal/packet/types.go
index f8e164c..6d0b1dd 100644
--- a/internal/packet/types.go
+++ b/internal/packet/types.go
@@ -139,6 +139,7 @@ type SendMessage struct {
ReceiverID *snowflake.ID
FrequencyID *snowflake.ID
Content string
+ Ping *snowflake.ID
}
func (m *SendMessage) Type() PacketType {