[BUG] - [ECT] - Preview crashes Discord when in a thread and the messages include the thread-starter message To Reproduce #13

Open
opened 2026-01-03 13:02:17 -06:00 by FearNaBoinne · 1 comment
FearNaBoinne commented 2026-01-03 13:02:17 -06:00 (Migrated from github.com)

Describe the bug
Preview crashes Discord when in a thread and the messages include the thread-starter message

To Reproduce
Open a thread, have fewer than [preview #] messages, hover over tab

Expected behavior
No crash

Screenshots
N/A

Discord Build (stable, ptb or canary):
Both Stable and PTB latest do this.

Additional context

Invariant Violation: Message must not be a thread starter message
at e.exports (https://discord.com/assets/web.37241dad1e8c6412.js:1:1284770)
at https://discord.com/assets/0e4e13abff41a916.js:1:361245
at betterdiscord/betterdiscord.js:64:20639
at i4 (https://discord.com/assets/web.37241dad1e8c6412.js:12:1199624)
at oH (https://discord.com/assets/web.37241dad1e8c6412.js:12:1227262)
at oZ (https://discord.com/assets/web.37241dad1e8c6412.js:12:1226175)
at oG (https://discord.com/assets/web.37241dad1e8c6412.js:12:1225789)
at o6 (https://discord.com/assets/web.37241dad1e8c6412.js:12:1240045)
at lH (https://discord.com/assets/web.37241dad1e8c6412.js:12:1271226)
at lF (https://discord.com/assets/web.37241dad1e8c6412.js:12:1270296)
at lZ (https://discord.com/assets/web.37241dad1e8c6412.js:12:1270138)
at lP (https://discord.com/assets/web.37241dad1e8c6412.js:12:1267264)
at cd (https://discord.com/assets/web.37241dad1e8c6412.js:12:1278623)
at P (https://discord.com/assets/web.37241dad1e8c6412.js:12:1443719)
at A. (https://discord.com/assets/web.37241dad1e8c6412.js:12:16600035)
at P (https://discord.com/assets/web.37241dad1e8c6412.js:12:16599804)
at MessagePort.w (https://discord.com/assets/web.37241dad1e8c6412.js:12:16599863)

at betterdiscord/betterdiscord.js:64:20639
at div (<anonymous>)
at div (<anonymous>)
at M (https://discord.com/assets/web.37241dad1e8c6412.js:22:74178)
at div (<anonymous>)
at https://discord.com/assets/web.37241dad1e8c6412.js:12:14818956
at div (<anonymous>)
at TabPeekPopout (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:3947:26)
at TabPeekPortal (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:4161:48)
at div (<anonymous>)
at TopBar (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:5493:26)
at DragProvider (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:2094:25)
at div (<anonymous>)
at betterdiscord/betterdiscord.js:64:20639
at o (https://discord.com/assets/web.37241dad1e8c6412.js:12:14883657)
at u (https://discord.com/assets/web.37241dad1e8c6412.js:12:14885422)
at d (https://discord.com/assets/web.37241dad1e8c6412.js:12:13729970)
at https://discord.com/assets/76dfd13212a57410.js:1:232341
at Suspense (<anonymous>)
at Suspense(Unknown) (<anonymous>)
at div (<anonymous>)
at div (<anonymous>)
at to (https://discord.com/assets/76dfd13212a57410.js:1:487627)
at div (<anonymous>)
at n (https://discord.com/assets/web.37241dad1e8c6412.js:1:547600)
at D (https://discord.com/assets/76dfd13212a57410.js:1:186832)
at div (<anonymous>)
at p (https://discord.com/assets/web.37241dad1e8c6412.js:12:15807198)
at M (https://discord.com/assets/76dfd13212a57410.js:1:187061)
at k (https://discord.com/assets/76dfd13212a57410.js:1:188001)
at div (<anonymous>)
at m (https://discord.com/assets/web.37241dad1e8c6412.js:12:3197089)
at https://discord.com/assets/76dfd13212a57410.js:1:170142
at Authenticated(<Unknown>) (<anonymous>)
at p (https://discord.com/assets/76dfd13212a57410.js:1:116694)
at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1358897)
at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1359567)
at tp (https://discord.com/assets/76dfd13212a57410.js:1:24482)
at Suspense (<anonymous>)
at f (<anonymous>)
at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1358897)
at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1359567)
at div (<anonymous>)
at b (https://discord.com/assets/web.37241dad1e8c6412.js:12:9891519)
at o (https://discord.com/assets/web.37241dad1e8c6412.js:12:5576587)
at m (https://discord.com/assets/web.37241dad1e8c6412.js:12:14696602)
at VerificationLayerProvider (<anonymous>)
at h (https://discord.com/assets/web.37241dad1e8c6412.js:12:5580266)
at d (https://discord.com/assets/web.37241dad1e8c6412.js:12:5578260)
at div (<anonymous>)
at div (<anonymous>)
at m (https://discord.com/assets/web.37241dad1e8c6412.js:12:14696602)
at AppLayerProvider (<anonymous>)
at b (https://discord.com/assets/web.37241dad1e8c6412.js:12:7633486)
at M (https://discord.com/assets/web.37241dad1e8c6412.js:22:74178)
at N (https://discord.com/assets/web.37241dad1e8c6412.js:12:6168688)
at d (https://discord.com/assets/web.37241dad1e8c6412.js:12:3546584)
at h (https://discord.com/assets/web.37241dad1e8c6412.js:12:3894256)
at y (https://discord.com/assets/web.37241dad1e8c6412.js:12:11003460)
at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:14884821)
at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864185)
at c (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864431)
at u (https://discord.com/assets/web.37241dad1e8c6412.js:12:14726788)
at w (https://discord.com/assets/web.37241dad1e8c6412.js:12:10999165)
at er (https://discord.com/assets/web.37241dad1e8c6412.js:12:5747476)
at ea (https://discord.com/assets/web.37241dad1e8c6412.js:12:3494756)
at es (https://discord.com/assets/web.37241dad1e8c6412.js:12:3499646)
at f (https://discord.com/assets/web.37241dad1e8c6412.js:12:14923872)
at https://discord.com/assets/web.37241dad1e8c6412.js:12:1149958
at h (https://discord.com/assets/web.37241dad1e8c6412.js:12:1144412)
at f (https://discord.com/assets/web.37241dad1e8c6412.js:12:3029752)
at App (<anonymous>)
at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1356234)
at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1335019)
at c (https://discord.com/assets/web.37241dad1e8c6412.js:12:10354836)
at y (https://discord.com/assets/web.37241dad1e8c6412.js:12:11003460)
at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:14884821)
at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864185)
at c (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864431)
at u (https://discord.com/assets/web.37241dad1e8c6412.js:12:14726788)
at w (https://discord.com/assets/web.37241dad1e8c6412.js:12:10999165)
**Describe the bug** Preview crashes Discord when in a thread and the messages include the thread-starter message **To Reproduce** Open a thread, have fewer than [preview #] messages, hover over tab **Expected behavior** No crash **Screenshots** N/A **Discord Build (stable, ptb or canary):** Both Stable and PTB latest do this. **Additional context** Invariant Violation: Message must not be a thread starter message at e.exports (https://discord.com/assets/web.37241dad1e8c6412.js:1:1284770) at https://discord.com/assets/0e4e13abff41a916.js:1:361245 at betterdiscord/betterdiscord.js:64:20639 at i4 (https://discord.com/assets/web.37241dad1e8c6412.js:12:1199624) at oH (https://discord.com/assets/web.37241dad1e8c6412.js:12:1227262) at oZ (https://discord.com/assets/web.37241dad1e8c6412.js:12:1226175) at oG (https://discord.com/assets/web.37241dad1e8c6412.js:12:1225789) at o6 (https://discord.com/assets/web.37241dad1e8c6412.js:12:1240045) at lH (https://discord.com/assets/web.37241dad1e8c6412.js:12:1271226) at lF (https://discord.com/assets/web.37241dad1e8c6412.js:12:1270296) at lZ (https://discord.com/assets/web.37241dad1e8c6412.js:12:1270138) at lP (https://discord.com/assets/web.37241dad1e8c6412.js:12:1267264) at cd (https://discord.com/assets/web.37241dad1e8c6412.js:12:1278623) at P (https://discord.com/assets/web.37241dad1e8c6412.js:12:1443719) at A.<computed> (https://discord.com/assets/web.37241dad1e8c6412.js:12:16600035) at P (https://discord.com/assets/web.37241dad1e8c6412.js:12:16599804) at MessagePort.w (https://discord.com/assets/web.37241dad1e8c6412.js:12:16599863) at betterdiscord/betterdiscord.js:64:20639 at div (<anonymous>) at div (<anonymous>) at M (https://discord.com/assets/web.37241dad1e8c6412.js:22:74178) at div (<anonymous>) at https://discord.com/assets/web.37241dad1e8c6412.js:12:14818956 at div (<anonymous>) at TabPeekPopout (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:3947:26) at TabPeekPortal (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:4161:48) at div (<anonymous>) at TopBar (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:5493:26) at DragProvider (betterdiscord://plugins/EnhancedChannelTabs.plugin.js:2094:25) at div (<anonymous>) at betterdiscord/betterdiscord.js:64:20639 at o (https://discord.com/assets/web.37241dad1e8c6412.js:12:14883657) at u (https://discord.com/assets/web.37241dad1e8c6412.js:12:14885422) at d (https://discord.com/assets/web.37241dad1e8c6412.js:12:13729970) at https://discord.com/assets/76dfd13212a57410.js:1:232341 at Suspense (<anonymous>) at Suspense(Unknown) (<anonymous>) at div (<anonymous>) at div (<anonymous>) at to (https://discord.com/assets/76dfd13212a57410.js:1:487627) at div (<anonymous>) at n (https://discord.com/assets/web.37241dad1e8c6412.js:1:547600) at D (https://discord.com/assets/76dfd13212a57410.js:1:186832) at div (<anonymous>) at p (https://discord.com/assets/web.37241dad1e8c6412.js:12:15807198) at M (https://discord.com/assets/76dfd13212a57410.js:1:187061) at k (https://discord.com/assets/76dfd13212a57410.js:1:188001) at div (<anonymous>) at m (https://discord.com/assets/web.37241dad1e8c6412.js:12:3197089) at https://discord.com/assets/76dfd13212a57410.js:1:170142 at Authenticated(<Unknown>) (<anonymous>) at p (https://discord.com/assets/76dfd13212a57410.js:1:116694) at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1358897) at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1359567) at tp (https://discord.com/assets/76dfd13212a57410.js:1:24482) at Suspense (<anonymous>) at f (<anonymous>) at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1358897) at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1359567) at div (<anonymous>) at b (https://discord.com/assets/web.37241dad1e8c6412.js:12:9891519) at o (https://discord.com/assets/web.37241dad1e8c6412.js:12:5576587) at m (https://discord.com/assets/web.37241dad1e8c6412.js:12:14696602) at VerificationLayerProvider (<anonymous>) at h (https://discord.com/assets/web.37241dad1e8c6412.js:12:5580266) at d (https://discord.com/assets/web.37241dad1e8c6412.js:12:5578260) at div (<anonymous>) at div (<anonymous>) at m (https://discord.com/assets/web.37241dad1e8c6412.js:12:14696602) at AppLayerProvider (<anonymous>) at b (https://discord.com/assets/web.37241dad1e8c6412.js:12:7633486) at M (https://discord.com/assets/web.37241dad1e8c6412.js:22:74178) at N (https://discord.com/assets/web.37241dad1e8c6412.js:12:6168688) at d (https://discord.com/assets/web.37241dad1e8c6412.js:12:3546584) at h (https://discord.com/assets/web.37241dad1e8c6412.js:12:3894256) at y (https://discord.com/assets/web.37241dad1e8c6412.js:12:11003460) at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:14884821) at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864185) at c (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864431) at u (https://discord.com/assets/web.37241dad1e8c6412.js:12:14726788) at w (https://discord.com/assets/web.37241dad1e8c6412.js:12:10999165) at er (https://discord.com/assets/web.37241dad1e8c6412.js:12:5747476) at ea (https://discord.com/assets/web.37241dad1e8c6412.js:12:3494756) at es (https://discord.com/assets/web.37241dad1e8c6412.js:12:3499646) at f (https://discord.com/assets/web.37241dad1e8c6412.js:12:14923872) at https://discord.com/assets/web.37241dad1e8c6412.js:12:1149958 at h (https://discord.com/assets/web.37241dad1e8c6412.js:12:1144412) at f (https://discord.com/assets/web.37241dad1e8c6412.js:12:3029752) at App (<anonymous>) at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1356234) at t (https://discord.com/assets/web.37241dad1e8c6412.js:12:1335019) at c (https://discord.com/assets/web.37241dad1e8c6412.js:12:10354836) at y (https://discord.com/assets/web.37241dad1e8c6412.js:12:11003460) at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:14884821) at s (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864185) at c (https://discord.com/assets/web.37241dad1e8c6412.js:12:17864431) at u (https://discord.com/assets/web.37241dad1e8c6412.js:12:14726788) at w (https://discord.com/assets/web.37241dad1e8c6412.js:12:10999165)
Pharaoh2k commented 2026-01-03 13:59:05 -06:00 (Migrated from github.com)

Nice catch. Should be fixed in 5.0.2 github.com/Pharaoh2k/BetterDiscordStuff@0eca90ec2a
Please let me know if it's good now.

Nice catch. Should be fixed in 5.0.2 https://github.com/Pharaoh2k/BetterDiscordStuff/commit/0eca90ec2a15de9af55db84ac8fef5415314fa92 Please let me know if it's good now.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Pharaoh2k/BetterDiscordStuff#13
No description provided.