This commit is contained in:
Mirco Wittrien 2021-06-03 21:55:51 +02:00
parent 1e7d83e8d7
commit a46d4518d0
2 changed files with 9 additions and 3 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB * @name BDFDB
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.6.7 * @version 1.6.8
* @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.6.7", "version": "1.6.8",
"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`
@ -4185,6 +4185,11 @@ module.exports = (_ => {
BDFDB.DiscordUtils.isDevModeEnabled = function () { BDFDB.DiscordUtils.isDevModeEnabled = function () {
return LibraryModules.SettingsStore.developerMode; return LibraryModules.SettingsStore.developerMode;
}; };
BDFDB.DiscordUtils.getExperiment = function (id) {
if (!id) return null;
const module = BDFDB.ModuleUtils.find(m => m.definition && m.definition.defaultConfig && m.definition.defaultConfig[id] != null && typeof m.getCurrentConfig == "function");
return module && (module.getCurrentConfig({}) || {})[id];
};
BDFDB.DiscordUtils.getTheme = function () { BDFDB.DiscordUtils.getTheme = function () {
return LibraryModules.SettingsStore.theme != "dark" ? BDFDB.disCN.themelight : BDFDB.disCN.themedark; return LibraryModules.SettingsStore.theme != "dark" ? BDFDB.disCN.themelight : BDFDB.disCN.themedark;
}; };

View File

@ -89,6 +89,7 @@
"MessageUtils": {"props": ["receiveMessage", "editMessage"]}, "MessageUtils": {"props": ["receiveMessage", "editMessage"]},
"ModalUtils": {"props": ["openModal", "hasModalOpen"]}, "ModalUtils": {"props": ["openModal", "hasModalOpen"]},
"MutedUtils": {"props": ["isGuildOrCategoryOrChannelMuted"]}, "MutedUtils": {"props": ["isGuildOrCategoryOrChannelMuted"]},
"NitroUtils": {"props": ["canUseIncreasedMessageLength", "canUploadAnimatedAvatar"]},
"NoteStore": {"props": ["getNote"]}, "NoteStore": {"props": ["getNote"]},
"NotificationSettingsStore": {"props": ["getDesktopType", "getTTSType"]}, "NotificationSettingsStore": {"props": ["getDesktopType", "getTTSType"]},
"NotificationSettingsUtils": {"props": ["setDesktopType", "setTTSType"]}, "NotificationSettingsUtils": {"props": ["setDesktopType", "setTTSType"]},
@ -4994,7 +4995,7 @@
"431078101997584395": {"active": false, "tier": "t2", "text": "", "id": "LEMI (f4g8)"}, "431078101997584395": {"active": false, "tier": "t2", "text": "", "id": "LEMI (f4g8)"},
"268824390337036298": {"active": false, "tier": "t2", "text": "", "id": "lonelyw0lf (GriWa)"}, "268824390337036298": {"active": false, "tier": "t2", "text": "", "id": "lonelyw0lf (GriWa)"},
"354191516979429376": {"active": false, "tier": "t2", "text": "", "id": "HypedDomi (DoBu)"}, "354191516979429376": {"active": false, "tier": "t2", "text": "", "id": "HypedDomi (DoBu)"},
"596006086511689748": {"active": false, "tier": "t2", "text": "", "id": "Marshtomp (DsOp)"}, "596006086511689748": {"active": true, "tier": "t2", "text": "", "id": "Marshtomp (DsOp)"},
"341383936984875020": {"active": true, "tier": "t3", "text": "", "id": "dannycoch (DaCo)"}, "341383936984875020": {"active": true, "tier": "t3", "text": "", "id": "dannycoch (DaCo)"},
"121188168002174976": {"active": false, "tier": "t2", "text": "", "id": "Aven (Syn)"}, "121188168002174976": {"active": false, "tier": "t2", "text": "", "id": "Aven (Syn)"},
"264486632525135883": {"active": true, "tier": "t3", "text": "", "id": "strix (A1C)"}, "264486632525135883": {"active": true, "tier": "t3", "text": "", "id": "strix (A1C)"},