🐛 fix identify struct
This commit is contained in:
parent
532d7b16a1
commit
8437156fd3
BIN
package-lock.json
generated
BIN
package-lock.json
generated
Binary file not shown.
@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user