From 3a458776bbb5d27a5195e75ee590cdd31526fb3a Mon Sep 17 00:00:00 2001 From: LoneWeeb <73281112+Tharki-God@users.noreply.github.com> Date: Sun, 5 Mar 2023 03:02:31 +0530 Subject: [PATCH] should fix https://github.com/Tharki-God/BetterDiscordPlugins/issues/106 --- BetterGameActivityToggle.plugin.js | 10 +++++----- FakeDeafen.plugin.js | 10 +++++----- RejoinVC.plugin.js | 10 +++++----- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/BetterGameActivityToggle.plugin.js b/BetterGameActivityToggle.plugin.js index 280482e..55f1f03 100644 --- a/BetterGameActivityToggle.plugin.js +++ b/BetterGameActivityToggle.plugin.js @@ -2,7 +2,7 @@ * @name BetterGameActivityToggle * @author Ahlawat * @authorId 1025214794766221384 - * @version 1.8.1 + * @version 1.8.2 * @invite SgKSKyh9gY * @description Toggle whether you want to show your game activity or not, without opening settings. * @website https://tharki-god.github.io/ @@ -38,7 +38,7 @@ module.exports = (() => { github_username: "Tharki-God", }, ], - version: "1.8.1", + version: "1.8.2", description: "Toggle whether you want to show your game activity or not, without opening settings.", github: "https://github.com/Tharki-God/BetterDiscordPlugins", github_raw: @@ -158,7 +158,7 @@ module.exports = (() => { Logger, PluginUpdater, Settings: { SettingPanel, SettingGroup, Switch }, - DiscordModules: { React }, + DiscordModules: { React, LocaleManager }, } = ZLibrary; const { ReactUtils, @@ -302,7 +302,7 @@ module.exports = (() => { DOMTools.addStyle(config.info.name, CSS); Patcher.before(AccountDetails, "Z", (_, args) => { const [{ children }] = args; - if (!children?.some?.(m => m?.props?.tooltipText == "Mute" || m?.props?.tooltipText == "Unmute")) return; + if (!children?.some?.(m => m?.props?.tooltipText == LocaleManager.Messages["MUTE"] || m?.props?.tooltipText == LocaleManager.Messages["UNMUTE"])) return; const enabled = UserSettingStore.getSetting("status", "showCurrentGame"); const Icon = LibraryIcons.Controller("20", "20"); const DisabledIcon = ReactUtils.addChilds(Icon, React.createElement("polygon", { @@ -416,7 +416,7 @@ module.exports = (() => { ), new Switch( "Play audio", - "Play a sound upon using the keybind or clicking the button in the status picker or user panel.", + "Play audio on using the keybind or clicking the button in the status picker or user panel.", this.settings["playAudio"], (e) => { this.settings["playAudio"] = e; diff --git a/FakeDeafen.plugin.js b/FakeDeafen.plugin.js index 24b9702..5784e7b 100644 --- a/FakeDeafen.plugin.js +++ b/FakeDeafen.plugin.js @@ -2,7 +2,7 @@ * @name FakeDeafen * @author Ahlawat * @authorId 1025214794766221384 - * @version 1.4.3 + * @version 1.4.4 * @invite SgKSKyh9gY * @description Fake your audio status, to make it look like you are muted or deafened when you're not. * @website https://tharki-god.github.io/ @@ -38,7 +38,7 @@ github_username: "Tharki-God", }, ], - version: "1.4.3", + version: "1.4.4", description: "Fake your audio status, to make it look like you are muted or deafened when you're not.", github: "https://github.com/Tharki-God/BetterDiscordPlugins", @@ -179,7 +179,7 @@ Logger, DOMTools, Settings: { SettingPanel, SettingGroup, Switch }, - DiscordModules: { React }, + DiscordModules: { React, LocaleManager }, } = ZLibrary; const { Patcher, ContextMenu } = BdApi; const { @@ -345,8 +345,8 @@ if ( !children?.some?.( (m) => - m?.props?.tooltipText == "Mute" || - m?.props?.tooltipText == "Unmute" + m?.props?.tooltipText == LocaleManager.Messages["MUTE"] || + m?.props?.tooltipText == LocaleManager.Messages["UNMUTE"] ) ) return; diff --git a/RejoinVC.plugin.js b/RejoinVC.plugin.js index d144160..01bed58 100644 --- a/RejoinVC.plugin.js +++ b/RejoinVC.plugin.js @@ -2,7 +2,7 @@ * @name RejoinVC * @author Ahlawat * @authorId 1025214794766221384 - * @version 1.2.0 + * @version 1.2.1 * @invite SgKSKyh9gY * @description Allows you to rejoin a voice channel by clicking on a button within 10 seconds of leaving. * @website https://tharki-god.github.io/ @@ -38,7 +38,7 @@ module.exports = ((_) => { github_username: "Tharki-God", } ], - version: "1.2.0", + version: "1.2.1", description: "Allows you to rejoin a voice channel by clicking on a button within 10 seconds of leaving.", github: "https://github.com/Tharki-God/BetterDiscordPlugins", @@ -175,7 +175,7 @@ module.exports = ((_) => { Logger, Utilities, Settings: { SettingPanel, Slider }, - DiscordModules: { React, ChannelActions }, + DiscordModules: { React, ChannelActions, LocaleManager }, } = ZLibrary; const { ContextMenu } = BdApi; const { @@ -236,8 +236,8 @@ module.exports = ((_) => { if ( !children?.some?.( (m) => - m?.props?.tooltipText == "Mute" || - m?.props?.tooltipText == "Unmute" + m?.props?.tooltipText == LocaleManager.Messages["MUTE"]|| + m?.props?.tooltipText == LocaleManager.Messages["UNMUTE"] ) ) return;