This commit is contained in:
Mirco Wittrien 2022-01-14 17:29:33 +01:00
parent dd9afbb912
commit 3cdb1935d4
2 changed files with 6 additions and 3 deletions

View File

@ -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"]},

View File

@ -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;