stuff
This commit is contained in:
parent
23afec190e
commit
51e1a27a0c
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.3.4
|
* @version 2.3.5
|
||||||
* @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": "2.3.4",
|
"version": "2.3.5",
|
||||||
"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"
|
||||||
|
@ -3159,6 +3159,16 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
catch (err) {BDFDB.LogUtils.error(["Could not render React Element!", err]);}
|
catch (err) {BDFDB.LogUtils.error(["Could not render React Element!", err]);}
|
||||||
};
|
};
|
||||||
|
BDFDB.ReactUtils.hookCall = function (callback, args) {
|
||||||
|
if (typeof callback != "function") return null;
|
||||||
|
let returnValue = null, tempNode = document.createElement("div");
|
||||||
|
BDFDB.ReactUtils.render(BDFDB.ReactUtils.createElement(_ => {
|
||||||
|
returnValue = callback(args);
|
||||||
|
return null;
|
||||||
|
}), tempNode);
|
||||||
|
BDFDB.ReactUtils.unmountComponentAtNode(tempNode);
|
||||||
|
return returnValue;
|
||||||
|
};
|
||||||
|
|
||||||
BDFDB.MessageUtils = {};
|
BDFDB.MessageUtils = {};
|
||||||
BDFDB.MessageUtils.isSystemMessage = function (message) {
|
BDFDB.MessageUtils.isSystemMessage = function (message) {
|
||||||
|
|
|
@ -129,6 +129,7 @@
|
||||||
"SpotifyUtils": {"props": ["setActiveDevice", "pause"]},
|
"SpotifyUtils": {"props": ["setActiveDevice", "pause"]},
|
||||||
"StageChannelLiveStore": {"props": ["getAllLiveStageChannels", "useAllLiveStageChannels"]},
|
"StageChannelLiveStore": {"props": ["getAllLiveStageChannels", "useAllLiveStageChannels"]},
|
||||||
"StageChannelStore": {"props": ["getStageInstanceByChannel", "getAllStageInstances"]},
|
"StageChannelStore": {"props": ["getStageInstanceByChannel", "getAllStageInstances"]},
|
||||||
|
"StageChannelUtils": {"props": ["getMutableParticipants", "getParticipantCount"]},
|
||||||
"StateStoreUtils": {"props": ["useStateFromStores", "useStateFromStoresArray"]},
|
"StateStoreUtils": {"props": ["useStateFromStores", "useStateFromStoresArray"]},
|
||||||
"StatusMetaUtils": {"props": ["getApplicationActivity", "getStatus", "getState"]},
|
"StatusMetaUtils": {"props": ["getApplicationActivity", "getStatus", "getState"]},
|
||||||
"StoreChangeUtils": {"props": ["get", "set", "clear", "remove"]},
|
"StoreChangeUtils": {"props": ["get", "set", "clear", "remove"]},
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue