change: move closeWS & sendShardMessage to ws object

This commit is contained in:
ITOH
2021-05-06 15:28:42 +02:00
parent c6a44c9665
commit fb8035c4ef
8 changed files with 18 additions and 21 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import { delay } from "../../src/util/utils.ts";
import { closeWS } from "../../src/ws/close_ws.ts";
import { ws } from "../../src/ws/ws.ts";
import { defaultTestOptions } from "./start_bot.ts";
@@ -9,7 +8,7 @@ Deno.test({
async fn() {
ws.shards.forEach((shard) => {
clearInterval(shard.heartbeat.intervalId);
closeWS(shard.ws, 3061, "Discordeno Testing Finished! Do Not RESUME!");
ws.closeWS(shard.ws, 3061, "Discordeno Testing Finished! Do Not RESUME!");
});
await delay(3000);