From 3cdb1935d43b76001c411ce8b049e1fe685834f7 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Fri, 14 Jan 2022 17:29:33 +0100 Subject: [PATCH] stuff --- Library/_res/0BDFDB.data.json | 2 +- Plugins/BetterFriendList/BetterFriendList.plugin.js | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 5e169e7dc9..c526600f8f 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -55,7 +55,6 @@ "EmojiUtils": {"props": ["translateInlineEmojiToSurrogates", "translateSurrogatesToInlineEmoji"]}, "EmojiStateUtils": {"props": ["getURL", "isEmojiDisabled"]}, "Env": {"props": ["env"]}, - "FriendUtils": {"props": ["getFriendIDs", "getRelationships"]}, "FolderStore": {"props": ["getGuildFolderById", "getFlattenedGuilds"]}, "FolderUtils": {"props": ["isFolderExpanded", "getExpandedFolders"]}, "GuildBadgeUtils": {"props": ["renderUnavailableBadge", "renderMentionBadge"]}, @@ -114,6 +113,7 @@ "ReactionUtils": {"props": ["addReaction", "removeReaction"]}, "RecentMentionUtils": {"props": ["deleteRecentMention", "fetchRecentMentions"]}, "RelationshipStore": {"props": ["getFriendIDs", "getRelationships"]}, + "RelationshipSuggestionUtils": {"props": ["getSuggestionCount", "getSuggestions"]}, "RelationshipUtils": {"props": ["addRelationship", "removeRelationship"]}, "RoleIconUtils": {"props": ["getRoleIconData"]}, "SearchPageUtils": {"props": ["searchNextPage", "searchPreviousPage"]}, diff --git a/Plugins/BetterFriendList/BetterFriendList.plugin.js b/Plugins/BetterFriendList/BetterFriendList.plugin.js index cb9ee20b31..715cf150a1 100644 --- a/Plugins/BetterFriendList/BetterFriendList.plugin.js +++ b/Plugins/BetterFriendList/BetterFriendList.plugin.js @@ -2,7 +2,7 @@ * @name BetterFriendList * @author DevilBro * @authorId 278543574059057154 - * @version 1.4.0 + * @version 1.4.1 * @description Adds extra Controls to the Friends Page, for example sort by Name/Status, Search and All/Request/Blocked Amount * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,7 +17,7 @@ module.exports = (_ => { "info": { "name": "BetterFriendList", "author": "DevilBro", - "version": "1.4.0", + "version": "1.4.1", "description": "Adds extra Controls to the Friends Page, for example sort by Name/Status, Search and All/Request/Blocked Amount" } }; @@ -266,6 +266,9 @@ module.exports = (_ => { newChildren.push(this.createBadge(relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_INCOMING], this.labels.incoming, relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_INCOMING] > 0)); newChildren.push(this.createBadge(relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.PENDING_OUTGOING], this.labels.outgoing)); break; + case BDFDB.DiscordConstants.FriendsSections.SUGGESTIONS: + newChildren.push(this.createBadge(BDFDB.LibraryModules.RelationshipSuggestionUtils.getSuggestionCount())); + break; case BDFDB.DiscordConstants.FriendsSections.BLOCKED: newChildren.push(this.createBadge(relationshipCount[BDFDB.DiscordConstants.RelationshipTypes.BLOCKED])); break;