diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 00a7ac84d4..a9803c70f1 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 2.3.9 + * @version 2.4.0 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -19,7 +19,7 @@ module.exports = (_ => { "info": { "name": "BDFDB", "author": "DevilBro", - "version": "2.3.9", + "version": "2.4.0", "description": "Required Library for DevilBro's Plugins" }, "rawUrl": "https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js" @@ -1328,7 +1328,7 @@ module.exports = (_ => { }) && m, useExport, noWarnings); }; BDFDB.ModuleUtils.findByName = function (name, useExport, noWarnings = false) { - return Internal.findModule("name", JSON.stringify(name), m => m.displayName === name && m || m.render && m.render.displayName === name && m || m[name] && m[name].displayName === name && m[name], typeof useExport != "boolean" ? true : useExport, noWarnings); + return Internal.findModule("name", JSON.stringify(name), m => m.displayName === name && m || m.render && m.render.displayName === name && m || m.constructor && m.constructor.displayName === name && m || m[name] && m[name].displayName === name && m[name], typeof useExport != "boolean" ? true : useExport, noWarnings); }; BDFDB.ModuleUtils.findByString = function (...strings) { strings = strings.flat(10); @@ -2617,6 +2617,7 @@ module.exports = (_ => { } else LibraryModules[item] = BDFDB.ModuleUtils.findByProperties(InternalData.LibraryModules[item].props); } + else if (InternalData.LibraryModules[item].name) LibraryModules[item] = BDFDB.ModuleUtils.findByName(InternalData.LibraryModules[item].name); else if (InternalData.LibraryModules[item].strings) LibraryModules[item] = BDFDB.ModuleUtils.findByString(InternalData.LibraryModules[item].strings); if (InternalData.LibraryModules[item].value) LibraryModules[item] = (LibraryModules[item] || {})[InternalData.LibraryModules[item].value]; return LibraryModules[item] ? LibraryModules[item] : null; diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 930b55e34f..483baf8fd0 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -29,6 +29,7 @@ "CategoryCollapseStore": {"props": ["getCollapsedCategories", "isCollapsed"]}, "CategoryCollapseUtils": {"props": ["categoryCollapse", "categoryCollapseAll"]}, "ChannelIconUtils": {"props": ["getChannelIconComponent", "getChannelIconTooltipText"]}, + "ChannelListStore": {"name": "ChannelListStore"}, "ChannelUtils": {"props": ["selectChannel", "selectPrivateChannel"]}, "ChannelStore": {"props": ["getChannel", "getDMFromUserId"]}, "ChatRestrictionUtils": {"props": ["applyChatRestrictions"]}, @@ -5341,7 +5342,7 @@ "155552545782235137": {"active": false, "tier": "t3", "text": "i hate everything about u", "color": "", "id": "Umbra (RaKa)"}, "824768928369606667": {"active": false, "tier": "t2", "text": "", "color": "", "id": "Kubox (HajJa)"}, "507464069100601363": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Cracky (MiPo)"}, - "264486632525135883": {"active": true, "tier": "t3", "text": "Mr. Morale", "color": "", "id": "strix (A1C)"}, + "264486632525135883": {"active": true, "tier": "t3", "text": "Mr. Morale", "color": "", "id": "strix (A1C)"}, "363785301195358221": {"active": false, "tier": "t2", "text": "", "color": "", "id": "TRENT (KABEL)"}, "620397524494057513": {"active": true, "tier": "t3", "text": "", "color": "", "id": "FUSL"} },