aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/apiMessageAccessories.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/apiMessageAccessories.ts')
-rw-r--r--src/plugins/apiMessageAccessories.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/apiMessageAccessories.ts b/src/plugins/apiMessageAccessories.ts
index 8d01810..5f6c693 100644
--- a/src/plugins/apiMessageAccessories.ts
+++ b/src/plugins/apiMessageAccessories.ts
@@ -27,7 +27,7 @@ export default definePlugin({
{
find: "_messageAttachmentToEmbedMedia",
replacement: {
- match: /\(\)\.container\)},(.+?)\)};return/,
+ match: /\(\)\.container,children:[[^\]]*]\)},(.+?)\)};return/,
replace: (_, accessories) =>
`().container)},Vencord.Api.MessageAccessories._modifyAccessories([${accessories}],this.props))};return`,
},