aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/anonymiseFileNames.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/anonymiseFileNames.ts')
-rw-r--r--src/plugins/anonymiseFileNames.ts2
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)),",
},
},
],