stuff
This commit is contained in:
parent
35551bf519
commit
2333094b05
|
@ -111,7 +111,6 @@
|
||||||
"EmojiStateUtils": {"props": ["getURL", "isEmojiDisabled"]},
|
"EmojiStateUtils": {"props": ["getURL", "isEmojiDisabled"]},
|
||||||
"Env": {"props": ["env"]},
|
"Env": {"props": ["env"]},
|
||||||
"FolderSettingsUtils": {"props": ["saveGuildFolders", "saveClientTheme"]},
|
"FolderSettingsUtils": {"props": ["saveGuildFolders", "saveClientTheme"]},
|
||||||
"GuildBoostUtils": {"props": ["getNextTier", "getAppliedGuildBoostMonths"]},
|
|
||||||
"GuildNotificationsUtils": {"props": ["updateChannelOverrideSettings", "updateGuildNotificationSettings"]},
|
"GuildNotificationsUtils": {"props": ["updateChannelOverrideSettings", "updateGuildNotificationSettings"]},
|
||||||
"GuildUtils": {"props": ["selectGuild", "transitionToGuildSync"]},
|
"GuildUtils": {"props": ["selectGuild", "transitionToGuildSync"]},
|
||||||
"HistoryUtils": {"props": ["transitionTo", "transitionToGuild"]},
|
"HistoryUtils": {"props": ["transitionTo", "transitionToGuild"]},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name ShowBadgesInChat
|
* @name ShowBadgesInChat
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 2.0.4
|
* @version 2.0.5
|
||||||
* @description Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList
|
* @description Displays Badges (Nitro, Hypesquad, etc...) in the Chat/MemberList/DMList
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -541,7 +541,7 @@ module.exports = (_ => {
|
||||||
|
|
||||||
getBoostLevel (date) {
|
getBoostLevel (date) {
|
||||||
let level = 1;
|
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]);
|
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;
|
return level;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue