diff options
Diffstat (limited to 'src/plugins/messageLinkEmbeds.tsx')
-rw-r--r-- | src/plugins/messageLinkEmbeds.tsx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/plugins/messageLinkEmbeds.tsx b/src/plugins/messageLinkEmbeds.tsx index bcd2fa4..d08f25e 100644 --- a/src/plugins/messageLinkEmbeds.tsx +++ b/src/plugins/messageLinkEmbeds.tsx @@ -151,9 +151,8 @@ export default definePlugin({ match: /{"use strict";(.{0,10})\(\)=>(.{1,2})}\);/, replace: '{"use strict";$1()=>$2,me:()=>messageEmbed});' }, { - match: /function (.{1,2})\((.{1,2})\){var (.{1,2})=.{1,2}\.message,(.{1,2})=.{1,2}\.channel(.{0,300})\.embedCard(.{0,500})}\)}/, - replace: "function $1($2){var $3=$2.message,$4=$2.channel$5().embedCard$6})}\ -var messageEmbed={mle_AutomodEmbed:$1};" + match: /function (.{1,2})\(.{1,2}\){var .{1,2}=.{1,2}\.message,.{1,2}=.{1,2}\.channel.{0,300}\.embedCard.{0,500}}\)}/, + replace: "$&;var messageEmbed={mle_AutomodEmbed:$1};" }] } ], |