mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
chore: remove todo comment
This commit is contained in:
+7
-4
@@ -1,4 +1,9 @@
|
|||||||
import { botGatewayData, eventHandlers } from "../bot.ts";
|
import {
|
||||||
|
botGatewayData,
|
||||||
|
eventHandlers,
|
||||||
|
IdentifyPayload,
|
||||||
|
proxyWSURL,
|
||||||
|
} from "../bot.ts";
|
||||||
import {
|
import {
|
||||||
DiscordBotGatewayData,
|
DiscordBotGatewayData,
|
||||||
DiscordHeartbeatPayload,
|
DiscordHeartbeatPayload,
|
||||||
@@ -7,9 +12,8 @@ import {
|
|||||||
ReadyPayload,
|
ReadyPayload,
|
||||||
} from "../types/types.ts";
|
} from "../types/types.ts";
|
||||||
import { BotStatusRequest, delay } from "../util/utils.ts";
|
import { BotStatusRequest, delay } from "../util/utils.ts";
|
||||||
import { IdentifyPayload, proxyWSURL } from "../bot.ts";
|
|
||||||
import { handleDiscordPayload } from "./shard_manager.ts";
|
|
||||||
import { decompressWith } from "./deps.ts";
|
import { decompressWith } from "./deps.ts";
|
||||||
|
import { handleDiscordPayload } from "./shard_manager.ts";
|
||||||
|
|
||||||
const basicShards = new Map<number, BasicShard>();
|
const basicShards = new Map<number, BasicShard>();
|
||||||
const heartbeating = new Map<number, boolean>();
|
const heartbeating = new Map<number, boolean>();
|
||||||
@@ -139,7 +143,6 @@ export async function createShard(
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// TODO(ayntee): better ws* event names
|
|
||||||
socket.onclose = ({ reason, code, wasClean }) => {
|
socket.onclose = ({ reason, code, wasClean }) => {
|
||||||
eventHandlers.debug?.(
|
eventHandlers.debug?.(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user