Guilds Fix
This commit is contained in:
parent
43ce605dfe
commit
9e7f36bd6b
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.3.2
|
* @version 2.3.3
|
||||||
* @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,15 +19,10 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "BDFDB",
|
"name": "BDFDB",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.3.2",
|
"version": "2.3.3",
|
||||||
"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"
|
||||||
"changeLog": {
|
|
||||||
"fixed": {
|
|
||||||
"Plugin Config Sync Issue": "Fixed and Issue where Plugin Configs would restore after a Discord Reload"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const Cache = {data: {}, modules: {}};
|
const Cache = {data: {}, modules: {}};
|
||||||
|
@ -8217,9 +8212,13 @@ module.exports = (_ => {
|
||||||
if (e.node && e.node.parentElement && e.node.parentElement.getAttribute("aria-label") == BDFDB.DiscordConstants.Layers.USER_SETTINGS) Internal.addListObserver(e.node.parentElement);
|
if (e.node && e.node.parentElement && e.node.parentElement.getAttribute("aria-label") == BDFDB.DiscordConstants.Layers.USER_SETTINGS) Internal.addListObserver(e.node.parentElement);
|
||||||
};
|
};
|
||||||
|
|
||||||
let AppViewExport = BDFDB.ModuleUtils.findByName("AppView", false);
|
let AppViewExport = InternalData.ModuleUtilsConfig.Finder.AppView && BDFDB.ModuleUtils.findByString(InternalData.ModuleUtilsConfig.Finder.AppView.strings, false);
|
||||||
if (AppViewExport) Internal.processShakeable = function (e) {
|
if (AppViewExport) Internal.processShakeable = function (e) {
|
||||||
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {name: "AppView"});
|
let [children, index] = BDFDB.ReactUtils.findParent(e.returnvalue, {filter: n => {
|
||||||
|
if (!n || typeof n.type != "function") return;
|
||||||
|
let typeString = n.type.toString();
|
||||||
|
return [InternalData.ModuleUtilsConfig.Finder.AppView.strings].flat(10).filter(n => typeof n == "string").every(string => typeString.indexOf(string) > -1);
|
||||||
|
}});
|
||||||
if (index > -1) children[index] = BDFDB.ReactUtils.createElement(AppViewExport.exports.default, children[index].props);
|
if (index > -1) children[index] = BDFDB.ReactUtils.createElement(AppViewExport.exports.default, children[index].props);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -221,6 +221,7 @@
|
||||||
"Account": {"class": "accountinfo"},
|
"Account": {"class": "accountinfo"},
|
||||||
"App": {"class": "app"},
|
"App": {"class": "app"},
|
||||||
"AppSkeleton": {"class": "app"},
|
"AppSkeleton": {"class": "app"},
|
||||||
|
"AppView": {"strings": ["darkSidebar", "guilds", "GUILD_CHANNEL", "GUILD_DISCOVERY"]},
|
||||||
"AuditLogs": {"class": "auditlog"},
|
"AuditLogs": {"class": "auditlog"},
|
||||||
"AuthWrapper": {"class": "loginscreen"},
|
"AuthWrapper": {"class": "loginscreen"},
|
||||||
"Avatar": {"props": ["AnimatedAvatar"]},
|
"Avatar": {"props": ["AnimatedAvatar"]},
|
||||||
|
|
Loading…
Reference in New Issue