🐛 fix identify schema
This commit is contained in:
parent
84d714324a
commit
71ace90f07
@ -2,13 +2,13 @@ import { ActivitySchema } from "./Activity";
|
|||||||
|
|
||||||
export const IdentifySchema = {
|
export const IdentifySchema = {
|
||||||
token: String,
|
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
|
// 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,
|
$$os: String,
|
||||||
$$browser: String,
|
$$browser: String,
|
||||||
$$device: 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,
|
$presence: ActivitySchema,
|
||||||
$compress: Boolean,
|
$compress: Boolean,
|
||||||
$large_threshold: Number,
|
$large_threshold: Number,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user