From 38b927b2d7bb7b71310f36dcd8bf8de0bc327db3 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 28 Mar 2024 19:13:48 +0100 Subject: [PATCH] stuff --- Library/0BDFDB.plugin.js | 6 +++--- .../DisplayServersAsChannels.plugin.js | 4 ++-- Plugins/EditUsers/EditUsers.plugin.js | 4 ++-- Plugins/FriendNotifications/FriendNotifications.plugin.js | 8 ++++---- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Library/0BDFDB.plugin.js b/Library/0BDFDB.plugin.js index 2e840515a3..6e576afd4e 100644 --- a/Library/0BDFDB.plugin.js +++ b/Library/0BDFDB.plugin.js @@ -2,7 +2,7 @@ * @name BDFDB * @author DevilBro * @authorId 278543574059057154 - * @version 3.6.1 + * @version 3.6.2 * @description Required Library for DevilBro's Plugins * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -1760,7 +1760,7 @@ module.exports = (_ => { let icon = data.config.avatar ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Avatars.Avatar, { src: data.config.avatar, - size: Internal.LibraryComponents.AvatarConstants.Sizes.SIZE_24 + size: Internal.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_24 }) : ((data.config.icon || data.config.type && Internal.DiscordConstants.ToastIcons[data.config.type]) ? BDFDB.ReactUtils.createElement(Internal.LibraryComponents.SvgIcon, { name: data.config.type && Internal.DiscordConstants.ToastIcons[data.config.type] && Internal.LibraryComponents.SvgIcon.Names[Internal.DiscordConstants.ToastIcons[data.config.type]], iconSVG: data.config.icon, @@ -8100,7 +8100,7 @@ module.exports = (_ => { } if (role) { if (avatar.type == "img") avatar = BDFDB.ReactUtils.createElement(Internal.LibraryComponents.Avatars.Avatar, Object.assign({}, avatar.props, { - size: Internal.LibraryComponents.AvatarConstants.Sizes.SIZE_40 + size: Internal.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_40 })); delete avatar.props.className; let newProps = { diff --git a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js index aaed06628d..994a581745 100644 --- a/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js +++ b/Plugins/DisplayServersAsChannels/DisplayServersAsChannels.plugin.js @@ -2,7 +2,7 @@ * @name DisplayServersAsChannels * @author DevilBro * @authorId 278543574059057154 - * @version 1.7.4 + * @version 1.7.5 * @description Displays Servers in a similar way as Channels * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -353,7 +353,7 @@ module.exports = (_ => { [ options.isDm && returnvalue.props.icon && BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, { src: returnvalue.props.icon, - size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_24 + size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_24 }), options.badges, ].flat(10).filter(n => n).map(badge => BDFDB.ReactUtils.createElement("div", { diff --git a/Plugins/EditUsers/EditUsers.plugin.js b/Plugins/EditUsers/EditUsers.plugin.js index 52cb85fd6a..ac3c57ed62 100644 --- a/Plugins/EditUsers/EditUsers.plugin.js +++ b/Plugins/EditUsers/EditUsers.plugin.js @@ -2,7 +2,7 @@ * @name EditUsers * @author DevilBro * @authorId 278543574059057154 - * @version 4.8.7 + * @version 4.8.8 * @description Allows you to locally edit Users * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -367,7 +367,7 @@ module.exports = (_ => { children: BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, { className: BDFDB.disCN.listavatar, src: this.getUserAvatar(id), - size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_32, + size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_32, onClick: _ => this.openUserSettingsModal(BDFDB.LibraryStores.UserStore.getUser(id)) }) }); diff --git a/Plugins/FriendNotifications/FriendNotifications.plugin.js b/Plugins/FriendNotifications/FriendNotifications.plugin.js index afc03a7761..4acd5ed86b 100644 --- a/Plugins/FriendNotifications/FriendNotifications.plugin.js +++ b/Plugins/FriendNotifications/FriendNotifications.plugin.js @@ -2,7 +2,7 @@ * @name FriendNotifications * @author DevilBro * @authorId 278543574059057154 - * @version 1.9.9 + * @version 2.0.0 * @description Shows a Notification when a Friend or a User, you choose to observe, changes their Status * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -176,7 +176,7 @@ module.exports = (_ => { BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Avatars.Avatar, { className: BDFDB.disCN._friendnotificationslogavatar, src: log.avatar, - size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_40 + size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_40 }), _this.createStatusDot(log.status, log.mobile, {marginRight: 6}), BDFDB.ReactUtils.createElement("div", { @@ -424,7 +424,7 @@ module.exports = (_ => { className: BDFDB.DOMUtils.formatClassName(BDFDB.disCN.listavatar, cardData.disabled && BDFDB.disCN.avatardisabled), src: BDFDB.UserUtils.getAvatar(cardData.id), status: BDFDB.UserUtils.getStatus(cardData.id), - size: BDFDB.LibraryComponents.AvatarConstants.Sizes.SIZE_40, + size: BDFDB.LibraryComponents.AvatarConstants.AvatarSizes.SIZE_40, onClick: _ => { let observed = this.getObservedData(); let data = observed[type][cardData.id] || Object.assign({}, defaultSettings); @@ -476,7 +476,7 @@ module.exports = (_ => { BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates); this.SettingsUpdated = true; } - })); + }, true)); return BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.CollapseContainer, { title: title, collapseStates: collapseStates,