stuff
This commit is contained in:
parent
f76ba7d36c
commit
d3557a8a91
|
@ -5050,7 +5050,6 @@
|
||||||
"155552545782235137": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Luni (RaKa)"},
|
"155552545782235137": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Luni (RaKa)"},
|
||||||
"824768928369606667": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Kubox (HajJa)"},
|
"824768928369606667": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Kubox (HajJa)"},
|
||||||
"507464069100601363": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Cracky (MiPo)"},
|
"507464069100601363": {"active": true, "tier": "t2", "text": "", "color": "", "id": "Cracky (MiPo)"},
|
||||||
"89482511343702016": {"active": false, "tier": "t3", "text": "", "color": "#0080ff", "id": "AzukiPuddles"},
|
|
||||||
"222808775722008587": {"active": false, "tier": "t2", "text": "", "color": "", "id": "Riyshin (AbÖz)"},
|
"222808775722008587": {"active": false, "tier": "t2", "text": "", "color": "", "id": "Riyshin (AbÖz)"},
|
||||||
"464865517354614805": {"active": false, "tier": "t2", "text": "", "color": "", "id": "Zammu (ScQu)"},
|
"464865517354614805": {"active": false, "tier": "t2", "text": "", "color": "", "id": "Zammu (ScQu)"},
|
||||||
"467514600934604801": {"active": true, "tier": "t2", "text": "", "color": "", "id": "x (liam)"},
|
"467514600934604801": {"active": true, "tier": "t2", "text": "", "color": "", "id": "x (liam)"},
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name RemoveBlockedUsers
|
* @name RemoveBlockedUsers
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.3.5
|
* @version 1.3.6
|
||||||
* @description Removes blocked Messages/Users
|
* @description Removes blocked Messages/Users
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,12 +17,12 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "RemoveBlockedUsers",
|
"name": "RemoveBlockedUsers",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.3.5",
|
"version": "1.3.6",
|
||||||
"description": "Removes blocked Messages/Users"
|
"description": "Removes blocked Messages/Users"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
"fixed": {
|
"fixed": {
|
||||||
"Member List Scroll Issue": "Fixed Issue where the Member list would stop loading Users after a certain scroll length"
|
"Server Notifications": "No longer kills all server notification icons"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -148,7 +148,7 @@ module.exports = (_ => {
|
||||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UnreadChannelUtils, "hasUnread", {after: e => {
|
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UnreadChannelUtils, "hasUnread", {after: e => {
|
||||||
if (e.returnValue && this.settings.notifcations.messages) {
|
if (e.returnValue && this.settings.notifcations.messages) {
|
||||||
let count = BDFDB.LibraryModules.UnreadChannelUtils.getUnreadCount(e.methodArguments[0]);
|
let count = BDFDB.LibraryModules.UnreadChannelUtils.getUnreadCount(e.methodArguments[0]);
|
||||||
if (count < BDFDB.DiscordConstants.MAX_MESSAGES_PER_CHANNEL) {
|
if (count > 0 && count < BDFDB.DiscordConstants.MAX_MESSAGES_PER_CHANNEL) {
|
||||||
let id = BDFDB.LibraryModules.UnreadChannelUtils.lastMessageId(e.methodArguments[0]);
|
let id = BDFDB.LibraryModules.UnreadChannelUtils.lastMessageId(e.methodArguments[0]);
|
||||||
let message = id && BDFDB.LibraryModules.MessageStore.getMessage(e.methodArguments[0], id);
|
let message = id && BDFDB.LibraryModules.MessageStore.getMessage(e.methodArguments[0], id);
|
||||||
if (message && message.blocked) {
|
if (message && message.blocked) {
|
||||||
|
@ -165,7 +165,7 @@ module.exports = (_ => {
|
||||||
|
|
||||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UnreadGuildUtils, "hasUnread", {after: e => {
|
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.UnreadGuildUtils, "hasUnread", {after: e => {
|
||||||
if (e.returnValue && this.settings.notifcations.messages) {
|
if (e.returnValue && this.settings.notifcations.messages) {
|
||||||
return BDFDB.LibraryModules.GuildChannelStore.getChannels(e.methodArguments[0]).SELECTABLE.map(n => n.channel && n.channel.id).filter(n => n && n != "null").some(BDFDB.LibraryModules.UnreadChannelUtils.hasUnread);
|
return BDFDB.LibraryModules.GuildChannelStore.getChannels(e.methodArguments[0]).SELECTABLE.map(n => n.channel && n.channel.id).filter(n => n && n != "null").map(id => BDFDB.LibraryModules.UnreadChannelUtils.hasUnread(id));
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue