diff options
Diffstat (limited to 'src/plugins/experiments.tsx')
-rw-r--r-- | src/plugins/experiments.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/experiments.tsx b/src/plugins/experiments.tsx index cc8309d..d38687f 100644 --- a/src/plugins/experiments.tsx +++ b/src/plugins/experiments.tsx @@ -75,7 +75,7 @@ export default definePlugin({ replacement: [ { match: /return\s*?(\i)\.hasFlag\((\i\.\i)\.STAFF\)}/, - replace: (_, user, flags) => `return Vencord.Webpack.Common.UserStore.getCurrentUser().id===${user}.id||${user}.hasFlag(${flags}.STAFF)}` + replace: (_, user, flags) => `return Vencord.Webpack.Common.UserStore.getCurrentUser()?.id===${user}.id||${user}.hasFlag(${flags}.STAFF)}` }, { match: /hasFreePremium=function\(\){return this.isStaff\(\)\s*?\|\|/, |