From b0fcb3f2f55597ef88972e4f201a602170f64dc8 Mon Sep 17 00:00:00 2001 From: ayntee Date: Sun, 21 Feb 2021 21:01:26 +0400 Subject: [PATCH] Update src/bot.ts --- src/bot.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/bot.ts b/src/bot.ts index 32e98863d..8e12fa390 100644 --- a/src/bot.ts +++ b/src/bot.ts @@ -29,7 +29,18 @@ export const identifyPayload: DiscordIdentify = { intents: 0, shard: [0, 0], }; - +/** deprecated Use "DiscordIdentify" instead */ +export interface IdentifyPayload { + token: string; + compress: boolean; + properties: { + $os: string; + $browser: string; + $device: string; + }; + intents: number; + shard: [number, number]; +} export async function startBot(config: BotConfig) { if (config.eventHandlers) eventHandlers = config.eventHandlers; authorization = `Bot ${config.token}`;