Update 0BDFDB.plugin.js
This commit is contained in:
parent
b2650766ac
commit
b490ba71aa
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.7.8
|
* @version 1.7.9
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -19,7 +19,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "BDFDB",
|
"name": "BDFDB",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.7.8",
|
"version": "1.7.9",
|
||||||
"description": "Required Library for DevilBro's Plugins"
|
"description": "Required Library for DevilBro's Plugins"
|
||||||
},
|
},
|
||||||
"rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js`,
|
"rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js`,
|
||||||
|
@ -2912,12 +2912,12 @@ module.exports = (_ => {
|
||||||
return user && user instanceof BDFDB.DiscordObjects.User;
|
return user && user instanceof BDFDB.DiscordObjects.User;
|
||||||
};
|
};
|
||||||
var myDataUser = LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser && LibraryModules.UserStore.getCurrentUser();
|
var myDataUser = LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser && LibraryModules.UserStore.getCurrentUser();
|
||||||
if (myDataUser) document.body.setAttribute(InternalData.userIdAttribute, myDataUser.id);
|
if (myDataUser) document.body.setAttribute("data-current-user-id", myDataUser.id);
|
||||||
BDFDB.UserUtils.me = new Proxy(myDataUser || {}, {
|
BDFDB.UserUtils.me = new Proxy(myDataUser || {}, {
|
||||||
get: function (list, item) {
|
get: function (list, item) {
|
||||||
if (!myDataUser) {
|
if (!myDataUser) {
|
||||||
myDataUser = LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser && LibraryModules.UserStore.getCurrentUser();
|
myDataUser = LibraryModules.UserStore && LibraryModules.UserStore.getCurrentUser && LibraryModules.UserStore.getCurrentUser();
|
||||||
if (myDataUser) document.body.setAttribute(InternalData.userIdAttribute, myDataUser.id);
|
if (myDataUser) document.body.setAttribute("data-current-user-id", myDataUser.id);
|
||||||
}
|
}
|
||||||
return myDataUser ? myDataUser[item] : null;
|
return myDataUser ? myDataUser[item] : null;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue