diff --git a/src/plugins/experiments.tsx b/src/plugins/experiments.tsx index cc8309df..d38687f5 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*?\|\|/,