summary refs log tree commit diff
path: root/dist/gateway/src/schema/Identify.js
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 20:59:58 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-10 20:59:58 +0100
commit3d54ed476240702812caf0b6e1ce94bfb0329cb5 (patch)
tree9f928dee5023de75b22d6b99c25c3c3fd967da7f /dist/gateway/src/schema/Identify.js
parentexport event (diff)
downloadserver-3d54ed476240702812caf0b6e1ce94bfb0329cb5.tar.xz
fix models + move schemas in api and gateway
Diffstat (limited to 'dist/gateway/src/schema/Identify.js')
-rw-r--r--dist/gateway/src/schema/Identify.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/dist/gateway/src/schema/Identify.js b/dist/gateway/src/schema/Identify.js
new file mode 100644

index 00000000..3cc343c8 --- /dev/null +++ b/dist/gateway/src/schema/Identify.js
@@ -0,0 +1,20 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IdentifySchema = void 0; +const Activity_1 = require("./Activity"); +exports.IdentifySchema = { + token: String, + 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, + }, + $presence: Activity_1.ActivitySchema, + $compress: Boolean, + $large_threshold: Number, + $shard: [Number], + $guild_subscriptions: Boolean, +}; +//# sourceMappingURL=Identify.js.map \ No newline at end of file