use safer MessageAccessories patch
This commit is contained in:
parent
b35f380c19
commit
80fa9ad550
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ export default definePlugin({
|
|||
{
|
||||
find: "#{intl::REMOVE_ATTACHMENT_BODY}",
|
||||
replacement: {
|
||||
match: /(\.renderReactions\(\i\).+?children:)(\[.+?\])/,
|
||||
replace: (_, rest, accessories) => `${rest}Vencord.Api.MessageAccessories._modifyAccessories(${accessories},this.props)`,
|
||||
match: /children:(\[[^\]]{0,100}?this.renderSuppressConfirmModal[^\]]{0,100}?\])/,
|
||||
replace: "children:Vencord.Api.MessageAccessories._modifyAccessories($1,this.props)",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue