Identify: allow qos_token toplevel
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;
|