Add more FIXME and explain better TODOS for migrations

This commit is contained in:
Nuckyz 2025-01-30 16:01:57 -03:00
parent b2d5c00a23
commit 414539f45e
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
10 changed files with 13 additions and 3 deletions

View file

@ -16,6 +16,7 @@ export default definePlugin({
{
find: '"sticker")',
replacement: {
// FIXME(Bundler change related): Remove old compatiblity once enough time has passed
match: /return\((!)?\i\.\i(?:\|\||&&)(?=\(\i\.isDM.+?(\i)\.push)/,
replace: (m, not, children) => not
? `${m}(Vencord.Api.ChatButtons._injectButtons(${children},arguments[0]),true)&&`