Remove changes of helpers, will change them on another pr

This commit is contained in:
TriForMine
2021-10-08 16:41:48 +02:00
parent 05804c9de4
commit 8c40679036
4 changed files with 13 additions and 12 deletions
+5 -4
View File
@@ -1,13 +1,14 @@
import {eventHandlers, GatewayManager} from "../../bot.ts";
import { eventHandlers } from "../../bot.ts";
import { DiscordGatewayOpcodes } from "../../types/codes/gateway_opcodes.ts";
import type { StatusUpdate } from "../../types/gateway/status_update.ts";
import { snakelize } from "../../util/utils.ts";
import { ws } from "../../ws/ws.ts";
export function editBotStatus(gateway: GatewayManager, data: Omit<StatusUpdate, "afk" | "since">) {
gateway.shards.forEach((shard) => {
export function editBotStatus(data: Omit<StatusUpdate, "afk" | "since">) {
ws.shards.forEach((shard) => {
eventHandlers.debug?.("loop", `Running forEach loop in editBotStatus function.`);
gateway.sendShardMessage(gateway, shard, {
ws.sendShardMessage(shard, {
op: DiscordGatewayOpcodes.StatusUpdate,
d: {
since: null,