Strencher / BetterDiscordStuff

A collection of my BetterDiscord plugins
https://strencher.github.io/BetterDiscordStuff/
363 stars 226 forks source link

[BUG] [Invisible Typing] Discord crash when opening Audit Log. #412

Closed Jugom closed 1 month ago

Jugom commented 3 months ago

As the title says. If I open the Audit log in a discord server, discord crashes. Console shows an error with invisible typing. Disabled Invisible typing and discord no longer crashes when opening the Audit Log.

domi-btnr commented 3 months ago

Could you paste the Error Message here?

XxUnkn0wnxX commented 3 months ago

well I'm not getting crashes but typing has been dead for me for a while, I believe.. getting console errors:

Screen Shot 2024-07-04 at 6 44 06 am
Console Log ``` tx @ web.3e849ca97f18986397a1.js:12 web.3e849ca97f18986397a1.js:12 Failed to request permissions: TypeError: Cannot read properties of undefined (reading 'can') at InvisibleTypingButton.canViewChannel (InvisibleTyping.plugin.js:106:58) at InvisibleTypingButton.shouldShow (InvisibleTyping.plugin.js:121:23) at Object.eval [as callback] (InvisibleTyping.plugin.js:510:40) at renderer.js:5:22972 at aA (web.3e849ca97f18986397a1.js:12:990088) at oh (web.3e849ca97f18986397a1.js:12:1001987) at o_ (web.3e849ca97f18986397a1.js:12:1001193) at od (web.3e849ca97f18986397a1.js:12:1000793) at l (web.3e849ca97f18986397a1.js:12:1048685) at sk (web.3e849ca97f18986397a1.js:12:1028319) at web.3e849ca97f18986397a1.js:12:1028185 at sG (web.3e849ca97f18986397a1.js:12:1028193) at sD (web.3e849ca97f18986397a1.js:12:1025278) at r5 (web.3e849ca97f18986397a1.js:12:973952) at sL (web.3e849ca97f18986397a1.js:12:1025593) at eU (web.3e849ca97f18986397a1.js:12:943178) at rs (web.3e849ca97f18986397a1.js:12:964307) at tk (web.3e849ca97f18986397a1.js:12:949975) at tx (web.3e849ca97f18986397a1.js:12:949759) I.t. @ web.3e849ca97f18986397a1.js:12 (anonymous) @ renderer.js:5 canViewChannel @ InvisibleTyping.plugin.js:112 shouldShow @ InvisibleTyping.plugin.js:121 eval @ InvisibleTyping.plugin.js:510 (anonymous) @ renderer.js:5 aA @ web.3e849ca97f18986397a1.js:12 oh @ web.3e849ca97f18986397a1.js:12 o_ @ web.3e849ca97f18986397a1.js:12 od @ web.3e849ca97f18986397a1.js:12 l @ web.3e849ca97f18986397a1.js:12 sk @ web.3e849ca97f18986397a1.js:12 (anonymous) @ web.3e849ca97f18986397a1.js:12 ```
Debug Log ``` [2024-07-03 20:43:19.531][CONSOLE:ERROR] Failed to request permissions: Cannot read properties of undefined (reading 'can') TypeError: Cannot read properties of undefined (reading 'can') at InvisibleTypingButton.canViewChannel (betterdiscord://plugins/InvisibleTyping.plugin.js:106:58) at InvisibleTypingButton.shouldShow (betterdiscord://plugins/InvisibleTyping.plugin.js:121:23) at Object.eval [as callback] (betterdiscord://plugins/InvisibleTyping.plugin.js:510:40) at betterdiscord/renderer.js:5:22972 at aA (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:990088) at oh (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1001987) at o_ (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1001193) at od (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1000793) at l (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1048685) at sk (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1028319) at https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1028185 at sG (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1028193) at sD (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1025278) at r5 (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:973952) at sL (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:1025593) at eU (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:943178) at rs (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:964307) at tk (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:949975) at tx (https://discord.com/assets/web.3e849ca97f18986397a1.js:12:949759)
domi-btnr commented 1 month ago

Fixed in https://github.com/Strencher/BetterDiscordStuff/commit/3413d0af88a3cc4c88bf374049cdc3160951164c