refactor: update plugins to use $self (#478)

Co-authored-by: Ven <vendicated@riseup.net>
This commit is contained in:
fawn
2023-02-10 21:41:49 +00:00
committed by GitHub
parent 1d995e58f5
commit d95be1acba
19 changed files with 26 additions and 26 deletions

View File

@ -33,7 +33,7 @@ export default definePlugin({
find: "M0 4C0 1.79086 1.79086 0 4 0H16C18.2091 0 20 1.79086 20 4V16C20 18.2091 18.2091 20 16 20H4C1.79086 20 0 18.2091 0 16V4Z",
replacement: {
match: /viewBox:"0 0 20 20"/,
replace: "$&,onClick:()=>Vencord.Plugins.plugins.BetterRoleDot.copyToClipBoard(e.color),style:{cursor:'pointer'}",
replace: "$&,onClick:()=>$self.copyToClipBoard(e.color),style:{cursor:'pointer'}",
},
},
{