stuff
This commit is contained in:
parent
7db70cad26
commit
8bc03642e8
|
@ -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) {
|
||||
|
|
|
@ -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"]}
|
||||
|
|
Loading…
Reference in New Issue