Fix NoServerEmojis, InvisibleChat & other patches

This commit is contained in:
Nuckyz 2025-05-13 20:59:13 -03:00
parent 8473b593a7
commit 98b1b11dfa
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
4 changed files with 18 additions and 16 deletions

View file

@ -110,7 +110,7 @@ export default definePlugin({
patches: [
{
// Indicator
find: "#{intl::MESSAGE_EDITED}",
find: ".SEND_FAILED,",
replacement: {
match: /let\{className:\i,message:\i[^}]*\}=(\i)/,
replace: "try {$1 && $self.INV_REGEX.test($1.message.content) ? $1.content.push($self.indicator()) : null } catch {};$&"