mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
change: move closeWS & sendShardMessage to ws object
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user