1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 13:14:06 +01:00

🎨 Convert id bigint to string

This commit is contained in:
Flam3rboy 2021-04-06 18:02:00 +02:00
parent 7279df5efb
commit 7276724702
4 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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;
}

View File

@ -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;
};

View File

@ -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;