summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 21:39:23 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 21:39:23 +0100
commit7099b88ea564d0918d07476c610f0942c8fabf47 (patch)
tree0ef7a7283c5a2c012acfd4584de8b8978ef4477f
parent:sparkles: add guilds array to user model (diff)
downloadserver-7099b88ea564d0918d07476c610f0942c8fabf47.tar.xz
:wrench: build
-rw-r--r--dist/Schema/Identify.d.ts4
-rw-r--r--dist/Schema/Identify.js4
-rw-r--r--dist/Schema/Identify.js.map2
-rw-r--r--dist/models/User.d.ts1
4 files changed, 6 insertions, 5 deletions
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;