Skip to content

Commit 27a8862

Browse files
Fixed button group selector (#454)
* Update index.tsx * Update index.tsx * Update typingButton.tsx * Version Bump --------- Co-authored-by: domi-btnr <me@domi-btnr.dev>
1 parent 128261f commit 27a8862

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

InvisibleTyping/components/typingButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import styles from "./typingButton.scss";
77
import Settings from "../modules/settings";
88
import { buildClassName, TypingModule, useStateFromStores } from "../modules/shared";
99

10-
const ChatButton = Webpack.getBySource("CHAT_INPUT_BUTTON_NOTIFICATION").Z;
10+
const ChatButton = Webpack.getBySource("CHAT_INPUT_BUTTON_NOTIFICATION")?.Z;
1111

1212
const removeItem = function (array: any[], item: any) {
1313
while (array.includes(item)) {
@@ -102,4 +102,4 @@ InvisibleTypingButton.getState = function (channelId: string) {
102102
if (isExcluded && !isGlobal) return true;
103103

104104
return isGlobal;
105-
};
105+
};

InvisibleTyping/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class InvisibleTyping {
5151
}
5252

5353
patchChannelTextArea() {
54-
const ChatButtonsGroup = Webpack.getBySource("\"ChannelTextAreaButtons\"").Z;
54+
const ChatButtonsGroup = Webpack.getBySource("type","channel","showAllButtons")?.Z;
5555

5656
Patcher.after(ChatButtonsGroup, "type", (_, args, res) => {
5757
if (args.length == 2 && !args[0].disabled && args[0].type.analyticsName == "normal" && res.props.children && Array.isArray(res.props.children)) {

InvisibleTyping/package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
{
22
"name": "InvisibleTyping",
3-
"version": "1.4.2",
3+
"version": "1.4.3",
44
"author": "Strencher",
55
"authorId": "415849376598982656",
66
"description": "Enhanced version of silent typing.",
77
"source": "https://github.com/Strencher/BetterDiscordStuff/blob/master/InvisibleTyping/InvisibleTyping.plugin.js",
88
"invite": "gvA2ree",
99
"changelog": [
1010
{
11-
"title": "Whoops",
11+
"title": "It works again!",
1212
"type": "fixed",
1313
"items": [
14-
"Only show button in the Chatbar"
15-
]
16-
},
17-
{
18-
"title": "Improved Button Placement",
19-
"type": "improved",
20-
"items": [
21-
"Updated the button to be in the correct button group",
22-
"Thanks to nicola02nb for the contribution"
14+
"Fixed for the latest Discord update",
15+
"Thanks to nicola02nb for the fix"
2316
]
2417
}
2518
],
26-
"changelogDate": "2025-06-19"
19+
"changelogDate": "2025-06-30"
2720
}

0 commit comments

Comments
 (0)