summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 17:08:33 +0100
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-02-06 17:08:33 +0100
commit71ace90f070ac5fd23872f5b2a4ce42b4bed998d (patch)
tree5fd8109f04936c363d39c48d3ec06aa0b2a338be
parent:sparkles: Schema interfaces (diff)
downloadserver-71ace90f070ac5fd23872f5b2a4ce42b4bed998d.tar.xz
:bug: fix identify schema
-rw-r--r--src/Schema/Identify.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Schema/Identify.ts b/src/Schema/Identify.ts

index 3a7182db..cfc3702a 100644 --- a/src/Schema/Identify.ts +++ b/src/Schema/Identify.ts
@@ -2,13 +2,13 @@ import { ActivitySchema } from "./Activity"; export const IdentifySchema = { token: String, - properties: { + intents: BigInt, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a 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, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt $presence: ActivitySchema, $compress: Boolean, $large_threshold: Number,