From 7a04f99fd350a7e492e26e7adfd2ed2c8eae24ae Mon Sep 17 00:00:00 2001 From: ayntee Date: Sat, 27 Mar 2021 11:19:52 +0400 Subject: [PATCH] types(gateway): make large_threshold optional --- src/bot.ts | 1 - src/types/gateway.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bot.ts b/src/bot.ts index 25bf69bdc..c5f10703a 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -22,7 +22,6 @@ export let lastShardID = 0; export const identifyPayload: DiscordIdentify = { token: "", compress: true, - large_threshold: 50, properties: { $os: "linux", $browser: "Discordeno", diff --git a/src/types/gateway.ts b/src/types/gateway.ts index bdf098d7e..752a86bd3 100644 --- a/src/types/gateway.ts +++ b/src/types/gateway.ts @@ -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 */