🐛 fix identify struct

This commit is contained in:
Flam3rboy 2021-06-09 20:10:39 +02:00
parent 532d7b16a1
commit 8437156fd3
4 changed files with 5 additions and 2 deletions

BIN
package-lock.json generated

Binary file not shown.

View File

@ -34,7 +34,7 @@ export class Server {
await this.setupSchema();
await Config.init();
console.log("[DB] connected");
this.server.listen(this.port);
if (!this.server.listening) this.server.listen(this.port);
console.log(`[Gateway] online on 0.0.0.0:${this.port}`);
}

View File

@ -16,7 +16,8 @@ import {
import { setupListener } from "../listener/listener";
import { IdentifySchema } from "../schema/Identify";
import { Send } from "../util/Send";
import experiments from "./experiments.json";
// import experiments from "./experiments.json";
const experiments: any = [];
import { check } from "./instanceOf";
// TODO: bot sharding

View File

@ -39,6 +39,7 @@ export const IdentifySchema = {
$read_state_version: Number,
$user_guild_settings_version: Number,
},
$v: Number,
};
export interface IdentifySchema {
@ -78,4 +79,5 @@ export interface IdentifySchema {
read_state_version?: number;
user_guild_settings_version?: number;
};
v?: number;
}