refactor: use updated identify payload instead

This commit is contained in:
ayntee
2021-02-20 23:46:37 +04:00
parent 4e09b7f46e
commit 7c404e80f6
3 changed files with 12 additions and 26 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import { controllers } from "../api/controllers/mod.ts";
import { Guild } from "../api/structures/guild.ts";
import { Member } from "../api/structures/mod.ts";
import { eventHandlers, IdentifyPayload } from "../bot.ts";
import { eventHandlers } from "../bot.ts";
import {
DiscordBotGatewayData,
DiscordIdentify,
DiscordPayload,
FetchMembersOptions,
GatewayOpcode,
@@ -26,7 +27,7 @@ export function allowNextShard(enabled = true) {
export async function spawnShards(
data: DiscordBotGatewayData,
payload: IdentifyPayload,
payload: DiscordIdentify,
shardID: number,
lastShardID: number,
skipChecks?: number,