diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/isStaff.ts | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/plugins/isStaff.ts b/src/plugins/isStaff.ts index aacfc4d..c5a95d0 100644 --- a/src/plugins/isStaff.ts +++ b/src/plugins/isStaff.ts @@ -5,18 +5,24 @@ export default definePlugin({ name: "isStaff", description: "Gives access to client devtools & other things locked behind isStaff", - authors: [Devs.Megu], + authors: [ + Devs.Megu, + { + name: "Nickyux", + id: 427146305651998721n + }, + { + name: "BanTheNons", + id: 460478012794863637n + } + ], patches: [ { find: ".isStaff=function(){", replacement: [ { - match: /(\w+)\.isStaff=function\(\){return\s*!1};/, - replace: "$1.isStaff=function(){return true};", - }, - { - match: /return\s*\w+\.hasFlag\(.+?STAFF\)}/, - replace: "return true}", + match: /return\s*(\w+)\.hasFlag\((.+?)\.STAFF\)}/, + replace: "return Vencord.Webpack.Common.UserStore.getCurrentUser().id===$1.id||$1.hasFlag($2.STAFF)}" }, { match: /hasFreePremium=function\(\){return this.isStaff\(\)\s*\|\|/, |