This commit is contained in:
Mirco Wittrien 2021-12-07 16:41:50 +01:00
parent ba9b508bb1
commit 8172ee3189
2 changed files with 6 additions and 6 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB * @name BDFDB
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.9.9 * @version 2.0.0
* @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.9.9", "version": "2.0.0",
"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`
@ -8285,7 +8285,7 @@ module.exports = (_ => {
return e.methodArguments[0].id == InternalData.myId ? e.methodArguments[0].banner : e.callOriginalMethod(); return e.methodArguments[0].id == InternalData.myId ? e.methodArguments[0].banner : e.callOriginalMethod();
}}); }});
BDFDB.PatchUtils.patch(this, LibraryModules.BannerUtils, "getUserBannerURLForContext", {instead: e => { BDFDB.PatchUtils.patch(BDFDB, LibraryModules.BannerUtils, "getUserBannerURLForContext", {instead: e => {
return e.methodArguments[0].user && e.methodArguments[0].user.id == InternalData.myId ? e.methodArguments[0].user.banner : e.callOriginalMethod(); return e.methodArguments[0].user && e.methodArguments[0].user.id == InternalData.myId ? e.methodArguments[0].user.banner : e.callOriginalMethod();
}}); }});

View File

@ -2,7 +2,7 @@
* @name ClickableMentions * @name ClickableMentions
* @author DevilBro * @author DevilBro
* @authorId 278543574059057154 * @authorId 278543574059057154
* @version 1.0.1 * @version 1.0.2
* @description Allows you to open a User Popout by clicking a Mention in your Message Input * @description Allows you to open a User Popout by clicking a Mention in your Message Input
* @invite Jx3TjNS * @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien * @donate https://www.paypal.me/MircoWittrien
@ -17,7 +17,7 @@ module.exports = (_ => {
"info": { "info": {
"name": "ClickableMentions", "name": "ClickableMentions",
"author": "DevilBro", "author": "DevilBro",
"version": "1.0.1", "version": "1.0.2",
"description": "Allows you to open a User Popout by clicking a Mention in your Message Input" "description": "Allows you to open a User Popout by clicking a Mention in your Message Input"
} }
}; };
@ -88,7 +88,7 @@ module.exports = (_ => {
} }
processRichUserMention (e) { processRichUserMention (e) {
if (e.instance.props.id) { if (e.instance.props.id && BDFDB.LibraryModules.UserStore.getUser(e.instance.props.id)) {
if (typeof e.returnvalue.props.children == "function") { if (typeof e.returnvalue.props.children == "function") {
let childrenRender = e.returnvalue.props.children; let childrenRender = e.returnvalue.props.children;
e.returnvalue.props.children = BDFDB.TimeUtils.suppress((...args) => { e.returnvalue.props.children = BDFDB.TimeUtils.suppress((...args) => {