From 11702c28792427d5b9f8dabc73dd5a35cb7f4de9 Mon Sep 17 00:00:00 2001 From: Tharki-God Date: Tue, 23 Apr 2024 11:03:09 +0530 Subject: [PATCH] meow --- .../{GatewayConnectionStore.ts => GatewayConnection.ts} | 2 +- src/injections/index.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/injections/{GatewayConnectionStore.ts => GatewayConnection.ts} (95%) diff --git a/src/injections/GatewayConnectionStore.ts b/src/injections/GatewayConnection.ts similarity index 95% rename from src/injections/GatewayConnectionStore.ts rename to src/injections/GatewayConnection.ts index d02ed54..20f3ae9 100644 --- a/src/injections/GatewayConnectionStore.ts +++ b/src/injections/GatewayConnection.ts @@ -5,7 +5,7 @@ import Types from "../types"; export default (): void => { PluginInjector.before( - Modules.GatewayConnectionStore.getSocket(), + Modules.GatewayConnection.default.prototype, "voiceStateUpdate", (args: [Types.voiceStateUpdateArgs]) => { const [voiceStateUpdateArgs] = args; diff --git a/src/injections/index.ts b/src/injections/index.ts index 022260f..82948c0 100644 --- a/src/injections/index.ts +++ b/src/injections/index.ts @@ -1,14 +1,14 @@ import Modules from "../lib/requiredModules"; import injectAudioResolver from "./AudioResolver"; import injectCenterControlTray from "./CenterControlTray"; -import injectGatewayConnectionStore from "./GatewayConnectionStore"; +import injectGatewayConnection from "./GatewayConnection"; import injectAccountContextMenu from "./AccountContextMenu"; import injectSettingSetter from "./SettingValues"; export const applyInjections = async (): Promise => { await Modules.loadModules(); void injectAudioResolver(); injectCenterControlTray(); - injectGatewayConnectionStore(); + injectGatewayConnection(); injectAccountContextMenu(); injectSettingSetter(); };