1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 20:52:42 +01:00
This commit is contained in:
Flam3rboy 2021-09-01 11:07:56 +02:00
parent 98f39f4710
commit e5bac0af0d

View File

@ -3,32 +3,33 @@ import { ActivitySchema } from "./Activity";
export const IdentifySchema = {
token: String,
$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 for bots, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key
$os: String,
$os_arch: String,
$browser: String,
$device: String,
$$os: String,
$$browser: String,
$$device: String,
$browser_user_agent: String,
$browser_version: String,
$os_version: String,
$referrer: String,
$$referrer: String,
$referring_domain: String,
$$referring_domain: String,
$referrer_current: String,
$referring_domain_current: String,
$release_channel: String,
$client_build_number: Number,
$client_event_source: String,
$client_version: String,
$system_locale: String,
$window_manager: String,
$distro: String,
},
$properties: Object,
// {
// // bruh discord really uses $ in the property key for bots, so we need to double prefix it, because instanceOf treats $ (prefix) as a optional key
// $os: String,
// $os_arch: String,
// $browser: String,
// $device: String,
// $$os: String,
// $$browser: String,
// $$device: String,
// $browser_user_agent: String,
// $browser_version: String,
// $os_version: String,
// $referrer: String,
// $$referrer: String,
// $referring_domain: String,
// $$referring_domain: String,
// $referrer_current: String,
// $referring_domain_current: String,
// $release_channel: String,
// $client_build_number: Number,
// $client_event_source: String,
// $client_version: String,
// $system_locale: String,
// $window_manager: String,
// $distro: String,
// },
$presence: ActivitySchema,
$compress: Boolean,
$large_threshold: Number,