Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-09-27 12:23:55 +02:00
parent f75929ae3f
commit c4780e3941
1 changed files with 5 additions and 2 deletions

View File

@ -1244,7 +1244,7 @@ module.exports = (_ => {
if (all) found.push(defaultExport ? r : req.c[i]);
else return defaultExport ? r : req.c[i];
}
else for (let key of Object.keys(m)) if (key.length < 3 && m[key] && !!(r = filter(m[key]))) {
else for (let key of Object.keys(m)) if (key.length < 4 && m[key] && !!(r = filter(m[key]))) {
if (all) found.push(defaultExport ? r : req.c[i]);
else return defaultExport ? r : req.c[i];
}
@ -2547,7 +2547,10 @@ module.exports = (_ => {
Internal.DiscordConstants = new Proxy(DiscordConstants, {
get: function (_, item) {
if (DiscordConstants[item]) return DiscordConstants[item];
if (!InternalData.DiscordConstants[item]) return {};
if (!InternalData.DiscordConstants[item]) {
BDFDB.LogUtils.warn([item, "Object not found in DiscordConstants"]);
return {};
}
DiscordConstants[item] = BDFDB.ModuleUtils.findByProperties(InternalData.DiscordConstants[item]);
return DiscordConstants[item] ? DiscordConstants[item] : {};
}