summaryrefslogtreecommitdiff
path: root/internal/packet
diff options
context:
space:
mode:
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 {