🎨 Convert id bigint to string
This commit is contained in:
parent
7279df5efb
commit
7276724702
@ -22,7 +22,7 @@ export interface ActivitySchema {
|
|||||||
start: number;
|
start: number;
|
||||||
end: number;
|
end: number;
|
||||||
};
|
};
|
||||||
application_id?: bigint; // application id for the game
|
application_id?: string; // application id for the game
|
||||||
details?: string;
|
details?: string;
|
||||||
state?: string;
|
state?: string;
|
||||||
emoji?: EmojiSchema;
|
emoji?: EmojiSchema;
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
export const EmojiSchema = {
|
export const EmojiSchema = {
|
||||||
name: String, // the name of the emoji
|
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
|
animated: Boolean, // whether this emoji is animated
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface EmojiSchema {
|
export interface EmojiSchema {
|
||||||
name: string;
|
name: string;
|
||||||
id?: bigint;
|
id?: string;
|
||||||
animated: Boolean;
|
animated: Boolean;
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,7 @@ export const IdentifySchema = {
|
|||||||
$capabilities: Number,
|
$capabilities: Number,
|
||||||
$client_state: {
|
$client_state: {
|
||||||
$guild_hashes: Object,
|
$guild_hashes: Object,
|
||||||
$highest_last_message_id: BigInt,
|
$highest_last_message_id: String,
|
||||||
$read_state_version: Number,
|
$read_state_version: Number,
|
||||||
$user_guild_settings_version: Number,
|
$user_guild_settings_version: Number,
|
||||||
},
|
},
|
||||||
@ -66,7 +66,7 @@ export interface IdentifySchema {
|
|||||||
capabilities?: number;
|
capabilities?: number;
|
||||||
client_state?: {
|
client_state?: {
|
||||||
guild_hashes?: any;
|
guild_hashes?: any;
|
||||||
highest_last_message_id?: bigint;
|
highest_last_message_id?: string;
|
||||||
read_state_version?: number;
|
read_state_version?: number;
|
||||||
user_guild_settings_version?: number;
|
user_guild_settings_version?: number;
|
||||||
};
|
};
|
||||||
|
@ -4,7 +4,7 @@ import { Deflate } from "zlib";
|
|||||||
|
|
||||||
interface WebSocket extends WS {
|
interface WebSocket extends WS {
|
||||||
version: number;
|
version: number;
|
||||||
user_id: bigint;
|
user_id: string;
|
||||||
encoding: "etf" | "json";
|
encoding: "etf" | "json";
|
||||||
compress?: "zlib-stream";
|
compress?: "zlib-stream";
|
||||||
deflate?: Deflate;
|
deflate?: Deflate;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user