diff options
author | Lewis Crichton <lewi@lewisakura.moe> | 2023-03-22 02:57:53 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-21 23:57:53 -0300 |
commit | 55a66dbb39259e5fa004b18385594c4c75d28483 (patch) | |
tree | dec411e5247bcdb252d4753238920922fa2a4133 | |
parent | a2f0c912f0f3c18e19ce2f3f62414421b3fe73cb (diff) | |
download | Vencord-55a66dbb39259e5fa004b18385594c4c75d28483.tar.gz Vencord-55a66dbb39259e5fa004b18385594c4c75d28483.tar.bz2 Vencord-55a66dbb39259e5fa004b18385594c4c75d28483.zip |
fix(RoleColorEverywhere): MessageLinkEmbeds DM error (#648)
-rw-r--r-- | src/plugins/roleColorEverywhere.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/roleColorEverywhere.tsx b/src/plugins/roleColorEverywhere.tsx index 4085b25..65a1cc0 100644 --- a/src/plugins/roleColorEverywhere.tsx +++ b/src/plugins/roleColorEverywhere.tsx @@ -53,7 +53,7 @@ export default definePlugin({ replacement: [ { match: /user:(\i),channel:(\i).{0,300}?"@"\.concat\(.+?\)/, - replace: "$&,color:$self.getUserColor($1.id,{channelId:$2.id})" + replace: "$&,color:$self.getUserColor($1.id,{channelId:$2?.id})" } ], predicate: () => settings.store.chatMentions, @@ -65,7 +65,7 @@ export default definePlugin({ replacement: [ { match: /function \i\((\i)\).{5,20}id.{5,20}guildId.{5,10}channelId.{100,150}hidePersonalInformation.{5,50}jsx.{5,20},{/, - replace: "$&color:$self.getUserColor($1.id,{guildId:$1.guildId})," + replace: "$&color:$self.getUserColor($1.id,{guildId:$1?.guildId})," } ], predicate: () => settings.store.chatMentions, |