⬆️ update test client

This commit is contained in:
Flam3rboy
2021-09-04 17:59:29 +02:00
parent 56d9fa3334
commit 0bf59ee28a
6 changed files with 10 additions and 9 deletions
+3 -1
View File
@@ -147,7 +147,9 @@ export async function onIdentify(this: WebSocket, data: Payload) {
// @ts-ignore
guilds: guilds.map((x) => {
// @ts-ignore
x.guild_hashes = {};
x.guild_hashes = {}; // @ts-ignore
x.guild_scheduled_events = []; // @ts-ignore
x.threads = [];
return x;
}),
guild_experiments: [], // TODO
+1 -1
View File
@@ -5,7 +5,7 @@ export const IdentifySchema = {
$intents: BigInt, // discord uses a Integer for bitfields we use bigints tho. | instanceOf will automatically convert the Number to a BigInt
$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
// // discord 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,