summary refs log tree commit diff
path: root/util/src
diff options
context:
space:
mode:
authorErkin Alp Güney <erkinalp9035@gmail.com>2022-04-02 12:06:14 +0300
committerGitHub <noreply@github.com>2022-04-02 12:06:14 +0300
commit18aa4c405bab0ebf2c7dd1fd1d7e33475f764c6a (patch)
tree2a3949be6b004537fbbfe829b8341c9996b297c1 /util/src
parentfirst steps for E2EE support — channel security settings event (diff)
downloadserver-18aa4c405bab0ebf2c7dd1fd1d7e33475f764c6a.tar.xz
More message types
Diffstat (limited to 'util/src')
-rw-r--r--util/src/entities/Message.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/src/entities/Message.ts b/util/src/entities/Message.ts
index e577d5df..04b04747 100644
--- a/util/src/entities/Message.ts
+++ b/util/src/entities/Message.ts
@@ -41,8 +41,14 @@ export enum MessageType {
 	CHANNEL_FOLLOW_ADD = 12,
 	GUILD_DISCOVERY_DISQUALIFIED = 14,
 	GUILD_DISCOVERY_REQUALIFIED = 15,
+	ENCRYPTED = 16,
 	REPLY = 19,
 	APPLICATION_COMMAND = 20,
+	ROUTE_ADDED = 41, // custom message routing: new route affecting that channel
+	ROUTE_DISABLED = 42, // custom message routing: given route no longer affecting that channel
+	ENCRYPTION = 50,
+	CUSTOM_START = 63,
+	UNHANDLED = 255
 }
 
 @Entity("messages")
@@ -203,6 +209,7 @@ export interface MessageComponent {
 }
 
 export enum MessageComponentType {
+	Script = 0, // self command script
 	ActionRow = 1,
 	Button = 2,
 }