MessageAccessoriesAPI: Fix
This commit is contained in:
parent
554bb18e9b
commit
fb22c57da1
|
@ -27,9 +27,8 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: ".Messages.REMOVE_ATTACHMENT_BODY",
|
find: ".Messages.REMOVE_ATTACHMENT_BODY",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /(.container\)?,children:)(\[[^\]]+\])(}\)\};return)/,
|
match: /(?<=.container\)?,children:)(\[.+?\])/,
|
||||||
replace: (_, pre, accessories, post) =>
|
replace: "Vencord.Api.MessageAccessories._modifyAccessories($1,this.props)",
|
||||||
`${pre}Vencord.Api.MessageAccessories._modifyAccessories(${accessories},this.props)${post}`,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -458,7 +458,7 @@ export function extract(id: number) {
|
||||||
// WARNING: This module was extracted to be more easily readable.
|
// WARNING: This module was extracted to be more easily readable.
|
||||||
// This module is NOT ACTUALLY USED! This means putting breakpoints will have NO EFFECT!!
|
// This module is NOT ACTUALLY USED! This means putting breakpoints will have NO EFFECT!!
|
||||||
|
|
||||||
${mod.toString()}
|
0,${mod.toString()}
|
||||||
//# sourceURL=ExtractedWebpackModule${id}
|
//# sourceURL=ExtractedWebpackModule${id}
|
||||||
`;
|
`;
|
||||||
const extracted = (0, eval)(code);
|
const extracted = (0, eval)(code);
|
||||||
|
|
Loading…
Reference in a new issue