Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
should fix #106
Browse files Browse the repository at this point in the history
  • Loading branch information
yofukashino authored Mar 4, 2023
1 parent f23285a commit 3a45877
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions BetterGameActivityToggle.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -158,7 +158,7 @@ module.exports = (() => {
Logger,
PluginUpdater,
Settings: { SettingPanel, SettingGroup, Switch },
DiscordModules: { React },
DiscordModules: { React, LocaleManager },
} = ZLibrary;
const {
ReactUtils,
Expand Down Expand Up @@ -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", {
Expand Down Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions FakeDeafen.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -179,7 +179,7 @@
Logger,
DOMTools,
Settings: { SettingPanel, SettingGroup, Switch },
DiscordModules: { React },
DiscordModules: { React, LocaleManager },
} = ZLibrary;
const { Patcher, ContextMenu } = BdApi;
const {
Expand Down Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions RejoinVC.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -175,7 +175,7 @@ module.exports = ((_) => {
Logger,
Utilities,
Settings: { SettingPanel, Slider },
DiscordModules: { React, ChannelActions },
DiscordModules: { React, ChannelActions, LocaleManager },
} = ZLibrary;
const { ContextMenu } = BdApi;
const {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 3a45877

Please sign in to comment.