From 8bc03642e828ed97e5ef4be441a6fc3f3ae16b98 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 24 Apr 2021 14:00:36 +0200 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 4 ++-- Library/_res/BDFDB.data.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 40f0bef6ed..80cef67b47 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2808,10 +2808,10 @@ module.exports = (_ => { BDFDB.UserUtils.is = function (user) { return user && user instanceof BDFDB.DiscordObjects.User; }; - var myDataUser = LibraryModules.CurrentUserStore && LibraryModules.CurrentUserStore.getCurrentUser(); + var myDataUser = LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser(); BDFDB.UserUtils.me = new Proxy(myDataUser || {}, { get: function (list, item) { - return (myDataUser = LibraryModules.CurrentUserStore.getCurrentUser()) && myDataUser[item]; + return (myDataUser = LibraryModules.UserStore.getCurrentUser()) && myDataUser[item]; } }); BDFDB.UserUtils.getStatus = function (id = BDFDB.UserUtils.me.id) { diff --git a/Library/_res/BDFDB.data.json b/Library/_res/BDFDB.data.json index be1aaae03d..4f26d86a8b 100644 --- a/Library/_res/BDFDB.data.json +++ b/Library/_res/BDFDB.data.json @@ -128,6 +128,7 @@ "UserSettingsUtils": {"props": ["open", "updateAccount"]}, "UserStore": {"props": ["getUser", "getUsers"]}, "Utilities": {"props": ["flatMap", "cloneDeep"]}, + "VoiceChannelUtils": {"props": ["isFullscreenInContext", "getParticipants"]}, "VoiceUtils": {"props": ["getAllVoiceStates", "getVoiceStatesForChannel"]}, "WindowUtils": {"props": ["minimize", "maximize", "close"]}, "ZoomUtils": {"props": ["setZoom", "setFontSize"]}