much better patch for PinIcon (#54)

* adding PinIcon

* patch change

* include dev to constants

* include dev to authors

* mb

* moved PinIcon to correct location

* patch improvement

* unneeded group in patch

Co-authored-by: Cortex <126973723+verysillycat@users.noreply.github.com>

---------

Co-authored-by: Cortex <126973723+verysillycat@users.noreply.github.com>
This commit is contained in:
programminglaboratorys 2024-10-15 06:56:05 +03:00 committed by GitHub
parent da8eeed5cb
commit bea836214e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,10 +27,10 @@ export default definePlugin({
authors: [EquicordDevs.iamme],
patches: [
{
find: ".Messages.MESSAGE_EDITED,",
find: "Messages.MESSAGE_EDITED,",
replacement: {
match: /(children:\[null!=\i.+?(?:[^}]*[}]){3}\))/,
replace: "$1,$self.PinnedIcon(arguments[0].message)"
match: /Messages\.MESSAGE_EDITED,(?:[^}]*[}]){3}\)/,
replace: "$&,$self.PinnedIcon(arguments[0].message)"
}
}
],