types(gateway): make large_threshold optional

This commit is contained in:
ayntee
2021-03-27 11:19:52 +04:00
parent 431d180957
commit 7a04f99fd3
2 changed files with 1 additions and 2 deletions

View File

@@ -22,7 +22,6 @@ export let lastShardID = 0;
export const identifyPayload: DiscordIdentify = {
token: "",
compress: true,
large_threshold: 50,
properties: {
$os: "linux",
$browser: "Discordeno",

View File

@@ -104,7 +104,7 @@ export interface DiscordIdentify {
/** Whether this connection supports compression of packets */
compress?: boolean;
/** Value between 50 and 250, total number of members where the gateway will stop sending offline members in the guild member list */
large_threshold: number;
large_threshold?: number;
/** Used for Guild Sharding */
shard?: [number, number];
/** Presence structure for initial presence information */