diff options
author | fawn <fawn@envs.net> | 2023-02-10 21:41:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 22:41:49 +0100 |
commit | d95be1acbaa282c53508a33d85cdda2ea76c50da (patch) | |
tree | 48145b1ff9c4455956d48c8b3c840323167fa96e /src/plugins/anonymiseFileNames.ts | |
parent | 1d995e58f515dbeb908ba34bf70f829bfd3ccfac (diff) | |
download | Vencord-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/anonymiseFileNames.ts')
-rw-r--r-- | src/plugins/anonymiseFileNames.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/anonymiseFileNames.ts b/src/plugins/anonymiseFileNames.ts index f953a14..26c423c 100644 --- a/src/plugins/anonymiseFileNames.ts +++ b/src/plugins/anonymiseFileNames.ts @@ -36,7 +36,7 @@ export default definePlugin({ replacement: { match: /uploadFiles:(.{1,2}),/, replace: - "uploadFiles:(...args)=>(args[0].uploads.forEach(f=>f.filename=Vencord.Plugins.plugins.AnonymiseFileNames.anonymise(f.filename)),$1(...args)),", + "uploadFiles:(...args)=>(args[0].uploads.forEach(f=>f.filename=$self.anonymise(f.filename)),$1(...args)),", }, }, ], |