|
|
@ -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}`,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|