Skip to content

Role color everywhere compatibility patch#3950

Open
EnergoStalin wants to merge 1 commit intoVendicated:devfrom
EnergoStalin:fix-roleColorEverywhere-compatibility-patch
Open

Role color everywhere compatibility patch#3950
EnergoStalin wants to merge 1 commit intoVendicated:devfrom
EnergoStalin:fix-roleColorEverywhere-compatibility-patch

Conversation

@EnergoStalin
Copy link

Old way not compatible with this

{
  find: "#{intl::GUEST_NAME_SUFFIX})]",
  replacement: {
    match: /#{intl::GUEST_NAME_SUFFIX}[^"]+""(?<=user:(\i).+?)/,
    replace: "$&,$self.showInjection($1.id)"
  }
}

replacement: [
{
match: /#{intl::GUEST_NAME_SUFFIX}.{0,50}?""\](?<=guildId:(\i),.+?user:(\i).+?)/,
match: /#{intl::GUEST_NAME_SUFFIX}[^"]+""[^}]+(?<=guildId:(\i),.+?user:(\i).+?)/,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
match: /#{intl::GUEST_NAME_SUFFIX}[^"]+""[^}]+(?<=guildId:(\i),.+?user:(\i).+?)/,
match: /#{intl::GUEST_NAME_SUFFIX}[^"]+?""\](?<=guildId:(\i),.+?user:(\i).+?)/,

Would this work?

Copy link
Author

@EnergoStalin EnergoStalin Feb 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tested. No.

Should be like this after patching.

{
  className: a()(c, T.Xh, q, {
    [T.Pi]: !U && !G && R
  }),
  children: [
    null != z ? z : j.Ay.getName(Z),
    F ? (0, r.jsxs)("span", {
      className: T.IW,
      children: ["\xa0", E.intl.string(E.t["pFO/Ph"])]
    }) : "",
    Vencord.Plugins.plugins["AllCallTimers"].showInjection(Z.id)
  ],
  style: Vencord.Plugins.plugins["RoleColorEverywhere"].getColorStyle(Z.id, W),
}

It's not RoleColorEverywhere preventing the patch it can't patch after AllCallTimers patch. Cause current patch wont skip over Vencord.Plugins.plugins["AllCallTimers"].showInjection(Z.id) line. Actually could be ordering issue but i dont see order option anywhere so just fall back to something familiar like fixing the patch.

@EnergoStalin EnergoStalin requested a review from Nuckyz February 3, 2026 16:08
@EnergoStalin EnergoStalin force-pushed the fix-roleColorEverywhere-compatibility-patch branch from 38d1a1e to 6967438 Compare February 5, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants