aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/betterRoleDot.ts
diff options
context:
space:
mode:
authorfawn <fawn@envs.net>2023-02-10 21:41:49 +0000
committerGitHub <noreply@github.com>2023-02-10 22:41:49 +0100
commitd95be1acbaa282c53508a33d85cdda2ea76c50da (patch)
tree48145b1ff9c4455956d48c8b3c840323167fa96e /src/plugins/betterRoleDot.ts
parent1d995e58f515dbeb908ba34bf70f829bfd3ccfac (diff)
downloadVencord-d95be1acbaa282c53508a33d85cdda2ea76c50da.tar.gz
Vencord-d95be1acbaa282c53508a33d85cdda2ea76c50da.tar.bz2
Vencord-d95be1acbaa282c53508a33d85cdda2ea76c50da.zip
refactor: update plugins to use `$self` (#478)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/plugins/betterRoleDot.ts')
-rw-r--r--src/plugins/betterRoleDot.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/betterRoleDot.ts b/src/plugins/betterRoleDot.ts
index 6cadf79..6ef92a8 100644
--- a/src/plugins/betterRoleDot.ts
+++ b/src/plugins/betterRoleDot.ts
@@ -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'}",
},
},
{