From 100fb85d5766adf3876b142106b9482ef9d13869 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 16 Mar 2023 16:03:04 +0100 Subject: [PATCH] stuff --- Library/_res/0BDFDB.data.json | 6 ++---- Plugins/EditUsers/EditUsers.plugin.js | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 8b272683ab..3b47bd0ef5 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -141,7 +141,8 @@ }}, "MediaEngineUtils": {"props": ["setOutputDevice", "setInputDevice"]}, "MemberDisplayUtils": {"strings": ["getUserProfile", "getGuildMemberProfile", "_userProfile"], "exported": false, "value": "exports", "map": { - "getDisplayProfile": [");return null"] + "getDisplayProfile": ["getUserProfile"], + "getUserProfile": ["function(){return"] }}, "MentionUtils": {"strings": ["rawMessage", "mention_everyone", "mentionUsers"], "exported": false, "value": "exports", "map": { "isRawMessageMentioned": ["rawMessage", "mention_everyone", "mentionUsers"] @@ -230,9 +231,6 @@ }}, "UserSettingsProtoUtils": {"strings": ["UserSettingsProtoLastWriteTimes"], "exported": false, "value": "exports"}, "UserSettingsUtils": {"props": ["open", "updateAccount"]}, - "UserThemeUtils": {"strings": [".default]", ".getUserProfile", ".getGuildMemberProfile"], "exported": false, "value": "exports", "map": { - "getUserProfile": [".default]"] - }}, "Utilities": {"props": ["flatMap", "cloneDeep"]}, "WindowUtils": {"props": ["minimize", "maximize", "close"]} }, diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index ba745191c4..85b3868f96 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -2,7 +2,7 @@ * @name EditUsers * @author DevilBro * @authorId 278543574059057154 - * @version 4.7.6 + * @version 4.7.7 * @description Allows you to locally edit Users * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -284,7 +284,7 @@ module.exports = (_ => { return e.callOriginalMethod(); }}); - BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UserThemeUtils, "getUserProfile", {after: e => { + BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.MemberDisplayUtils, "getUserProfile", {after: e => { if (!e.returnValue || !changedUsers[e.methodArguments[0]] || !changedUsers[e.methodArguments[0]].color5 && !changedUsers[e.methodArguments[0]].color6 && !changedUsers[e.methodArguments[0]].color7) return; let newProfileObject = {}; for (let key in e.returnValue) newProfileObject[key] = e.returnValue[key];