Update src/bot.ts

This commit is contained in:
ayntee
2021-02-21 21:01:26 +04:00
committed by GitHub
parent 7c404e80f6
commit b0fcb3f2f5

View File

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