From 2333094b05c367bcdb4f3f9d3919b1e3c85ebd16 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Mon, 5 Feb 2024 16:25:34 +0100 Subject: [PATCH] stuff --- Library/_res/0BDFDB.data.json | 1 - Plugins/ShowBadgesInChat/ShowBadgesInChat.plugin.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Library/_res/0BDFDB.data.json b/Library/_res/0BDFDB.data.json index 37e2001d7e..4476361c3c 100644 --- a/Library/_res/0BDFDB.data.json +++ b/Library/_res/0BDFDB.data.json @@ -111,7 +111,6 @@ "EmojiStateUtils": {"props": ["getURL", "isEmojiDisabled"]}, "Env": {"props": ["env"]}, "FolderSettingsUtils": {"props": ["saveGuildFolders", "saveClientTheme"]}, - "GuildBoostUtils": {"props": ["getNextTier", "getAppliedGuildBoostMonths"]}, "GuildNotificationsUtils": {"props": ["updateChannelOverrideSettings", "updateGuildNotificationSettings"]}, "GuildUtils": {"props": ["selectGuild", "transitionToGuildSync"]}, "HistoryUtils": {"props": ["transitionTo", "transitionToGuild"]}, diff --git a/Plugins/ShowBadgesInChat/ShowBadgesInChat.plugin.js b/Plugins/ShowBadgesInChat/ShowBadgesInChat.plugin.js index e099c6312c..6f3b3936b7 100644 --- a/Plugins/ShowBadgesInChat/ShowBadgesInChat.plugin.js +++ b/Plugins/ShowBadgesInChat/ShowBadgesInChat.plugin.js @@ -2,7 +2,7 @@ * @name ShowBadgesInChat * @author DevilBro * @authorId 278543574059057154 - * @version 2.0.4 + * @version 2.0.5 * @description Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -541,7 +541,7 @@ module.exports = (_ => { getBoostLevel (date) { let level = 1; - let monthDifference = BDFDB.LibraryModules.GuildBoostUtils.getAppliedGuildBoostMonths(date); + let monthDifference = BDFDB.DiscordObjects.Timestamp().diff(BDFDB.DiscordObjects.Timestamp(date), "months"); for (let i = 0, levels = Object.keys(BDFDB.DiscordConstants.UserPremiumLevels); i < levels.length; i++) if (BDFDB.DiscordConstants.UserPremiumLevels[levels[i]] < monthDifference) level = parseInt(levels[i]); return level; }