summary refs log tree commit diff
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-10-12 19:09:32 +0200
committerRory& <root@rory.gay>2026-10-12 19:09:32 +0200
commitd10b87d3df7e6832f59e267d5dba91a60a67983a (patch)
tree6260a1802a3f3b632e4d747e3f52ec8068b5096d
parentBump pion (diff)
downloadserver-ts-d10b87d3df7e6832f59e267d5dba91a60a67983a.tar.xz
Identify: allow qos_token toplevel
-rw-r--r--assets/openapi.json3
-rw-r--r--assets/schemas.json3
-rw-r--r--src/schemas/gateway/IdentifySchema.ts3
3 files changed, 8 insertions, 1 deletions
diff --git a/assets/openapi.json b/assets/openapi.json

index 623ffd8d8..e1d70a9a9 100644 --- a/assets/openapi.json +++ b/assets/openapi.json
@@ -7638,6 +7638,9 @@ "token": { "type": "string" }, + "qos_token": { + "type": "string" + }, "properties": { "type": "object", "properties": { diff --git a/assets/schemas.json b/assets/schemas.json
index a4bfe82a5..698a6ea77 100644 --- a/assets/schemas.json +++ b/assets/schemas.json
@@ -8188,6 +8188,9 @@ "token": { "type": "string" }, + "qos_token": { + "type": "string" + }, "properties": { "type": "object", "properties": { diff --git a/src/schemas/gateway/IdentifySchema.ts b/src/schemas/gateway/IdentifySchema.ts
index 3a88088c9..51703ac3e 100644 --- a/src/schemas/gateway/IdentifySchema.ts +++ b/src/schemas/gateway/IdentifySchema.ts
@@ -85,6 +85,7 @@ export const IdentifySchema = { export interface IdentifySchema { token: string; + qos_token?: string; properties: { // bruh discord really uses $ in the property key, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key os?: string; @@ -106,7 +107,7 @@ export interface IdentifySchema { client_event_source?: string; client_version?: string; system_locale?: string; - qos_token?: string; + qos_token?: string; }; intents?: bigint; // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt presence?: ActivitySchema;