summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:02:00 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-04-06 18:02:00 +0200
commit727672470215d9b03f0e668a98dea45f8edbb7d0 (patch)
tree69322efbe1b3de938bb54fd83f3d96c79913a269
parent:bug: fix hearbeat gateway (diff)
downloadserver-727672470215d9b03f0e668a98dea45f8edbb7d0.tar.xz
:art: Convert id bigint to string
-rw-r--r--src/schema/Activity.ts2
-rw-r--r--src/schema/Emoji.ts4
-rw-r--r--src/schema/Identify.ts4
-rw-r--r--src/util/WebSocket.ts2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/schema/Activity.ts b/src/schema/Activity.ts

index 45bd6fef..7b86e78d 100644 --- a/src/schema/Activity.ts +++ b/src/schema/Activity.ts
@@ -22,7 +22,7 @@ export interface ActivitySchema { start: number; end: number; }; - application_id?: bigint; // application id for the game + application_id?: string; // application id for the game details?: string; state?: string; emoji?: EmojiSchema; diff --git a/src/schema/Emoji.ts b/src/schema/Emoji.ts
index 09f3ebb1..413b8359 100644 --- a/src/schema/Emoji.ts +++ b/src/schema/Emoji.ts
@@ -1,11 +1,11 @@ export const EmojiSchema = { name: String, // the name of the emoji - $id: BigInt, // the id of the emoji + $id: String, // the id of the emoji animated: Boolean, // whether this emoji is animated }; export interface EmojiSchema { name: string; - id?: bigint; + id?: string; animated: Boolean; } diff --git a/src/schema/Identify.ts b/src/schema/Identify.ts
index 0c458f14..3e153fbe 100644 --- a/src/schema/Identify.ts +++ b/src/schema/Identify.ts
@@ -30,7 +30,7 @@ export const IdentifySchema = { $capabilities: Number, $client_state: { $guild_hashes: Object, - $highest_last_message_id: BigInt, + $highest_last_message_id: String, $read_state_version: Number, $user_guild_settings_version: Number, }, @@ -66,7 +66,7 @@ export interface IdentifySchema { capabilities?: number; client_state?: { guild_hashes?: any; - highest_last_message_id?: bigint; + highest_last_message_id?: string; read_state_version?: number; user_guild_settings_version?: number; }; diff --git a/src/util/WebSocket.ts b/src/util/WebSocket.ts
index 4f866ad5..566fc3aa 100644 --- a/src/util/WebSocket.ts +++ b/src/util/WebSocket.ts
@@ -4,7 +4,7 @@ import { Deflate } from "zlib"; interface WebSocket extends WS { version: number; - user_id: bigint; + user_id: string; encoding: "etf" | "json"; compress?: "zlib-stream"; deflate?: Deflate;