Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 69e4f7a

Browse files
committed
fix(reactions): fix reactions not working in threads
1 parent 485104a commit 69e4f7a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Scripts/reactions/updateMessage.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export default function updateMessageReactions(
6060
});
6161

6262
reactionCount > 0 ? components?.push(reactionBtn.toJSON()) : null;
63-
webhook.editMessage(dbMsg.messageId, { components });
63+
webhook.editMessage(dbMsg.messageId, {
64+
components,
65+
threadId: connection.parentId ? connection.channelId : undefined,
66+
});
6467
});
6568
}

src/Utils/functions/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import 'dotenv/config';
1313

1414
export const constants = {
1515
developers: ['828492978716409856', '701727675311587358', '456961943505338369'],
16-
staff: ['597265261665714186', '442653948630007808'],
16+
staff: ['597265261665714186', '442653948630007808', '689082827979227160'],
1717
guilds: { cbhq: '770256165300338709' },
1818

1919
channel: {

0 commit comments

Comments
 (0)