API deprecations

This commit is contained in:
Zack Rauen 2020-12-03 18:53:38 -05:00
parent bb19b45b86
commit 3780a0bd41
1 changed files with 3 additions and 0 deletions

View File

@ -60,6 +60,7 @@ BdApi.unlinkJS = function (id) {
//Get another plugin
//name = name of plugin
BdApi.getPlugin = function (name) {
Utils.warn("Deprecation Notice", `BdApi.getPlugin() will be removed in future versions. Please use the BdApi.Plugins API`);
if (bdplugins.hasOwnProperty(name)) {
return bdplugins[name].plugin;
}
@ -173,10 +174,12 @@ BdApi.testJSON = function(data) {
};
BdApi.isPluginEnabled = function(name) {
Utils.warn("Deprecation Notice", `BdApi.isPluginEnabled() will be removed in future versions. Please use the BdApi.Plugins API`);
return !!pluginCookie[name];
};
BdApi.isThemeEnabled = function(name) {
Utils.warn("Deprecation Notice", `BdApi.isThemeEnabled() will be removed in future versions. Please use the BdApi.Themes API`);
return !!themeCookie[name];
};