diff --git a/dist/Schema/Identify.d.ts b/dist/Schema/Identify.d.ts index a7fa5b23..750f2871 100644 --- a/dist/Schema/Identify.d.ts +++ b/dist/Schema/Identify.d.ts @@ -1,12 +1,12 @@ import { ActivitySchema } from "./Activity"; export declare const IdentifySchema: { token: StringConstructor; - properties: { + intents: BigIntConstructor; + $properties: { $$os: StringConstructor; $$browser: StringConstructor; $$device: StringConstructor; }; - intents: BigIntConstructor; $presence: { afk: BooleanConstructor; status: StringConstructor; diff --git a/dist/Schema/Identify.js b/dist/Schema/Identify.js index 9686a4d0..3cc343c8 100644 --- a/dist/Schema/Identify.js +++ b/dist/Schema/Identify.js @@ -4,13 +4,13 @@ exports.IdentifySchema = void 0; const Activity_1 = require("./Activity"); exports.IdentifySchema = { token: String, - properties: { + intents: BigInt, + $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, $$browser: String, $$device: String, }, - intents: BigInt, $presence: Activity_1.ActivitySchema, $compress: Boolean, $large_threshold: Number, diff --git a/dist/Schema/Identify.js.map b/dist/Schema/Identify.js.map index 0feb6baa..857fd9c1 100644 --- a/dist/Schema/Identify.js.map +++ b/dist/Schema/Identify.js.map @@ -1 +1 @@ -{"version":3,"file":"Identify.js","sourceRoot":"","sources":["../../src/Schema/Identify.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE/B,QAAA,cAAc,GAAG;IAC7B,KAAK,EAAE,MAAM;IACb,UAAU,EAAE;QACX,yIAAyI;QACzI,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM;KAChB;IACD,OAAO,EAAE,MAAM;IACf,SAAS,EAAE,yBAAc;IACzB,SAAS,EAAE,OAAO;IAClB,gBAAgB,EAAE,MAAM;IACxB,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,oBAAoB,EAAE,OAAO;CAC7B,CAAC"} \ No newline at end of file +{"version":3,"file":"Identify.js","sourceRoot":"","sources":["../../src/Schema/Identify.ts"],"names":[],"mappings":";;;AAAA,yCAA4C;AAE/B,QAAA,cAAc,GAAG;IAC7B,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,MAAM;IACf,WAAW,EAAE;QACZ,yIAAyI;QACzI,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,MAAM;KAChB;IACD,SAAS,EAAE,yBAAc;IACzB,SAAS,EAAE,OAAO;IAClB,gBAAgB,EAAE,MAAM;IACxB,MAAM,EAAE,CAAC,MAAM,CAAC;IAChB,oBAAoB,EAAE,OAAO;CAC7B,CAAC"} \ No newline at end of file diff --git a/dist/models/User.d.ts b/dist/models/User.d.ts index f5676386..5e86a8a3 100644 --- a/dist/models/User.d.ts +++ b/dist/models/User.d.ts @@ -13,6 +13,7 @@ export interface User { hash: string; valid_tokens_since: number; user_settings: UserSettings; + guilds: bigint[]; } export interface UserSettings { afk_timeout: number;