mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-29 22:34:33 +00:00
🐛 fix identify struct
This commit is contained in:
Generated
BIN
Binary file not shown.
+1
-1
@@ -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