ChatInputButtonAPI: Fix broken patch

This commit is contained in:
Nuckyz 2026-01-28 18:43:02 -03:00
parent 3a000a5705
commit 22e9730888
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -16,8 +16,8 @@ export default definePlugin({
{
find: '"sticker")',
replacement: {
match: /let (\i)=\(0,\i\.chain\).{0,150}?;(?=return 0===\1\.length)/,
replace: "$&Vencord.Api.ChatButtons._injectButtons($1,arguments[0]);"
match: /0===(\i)\.length(?=.{0,25}?\(0,\i\.jsxs?\)\(.{0,75}?children:\1)/,
replace: "(Vencord.Api.ChatButtons._injectButtons($1,arguments[0]),$&)"
}
}
]