stuff
This commit is contained in:
parent
25fd92198e
commit
5a7e237f49
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.9.8
|
* @version 1.9.9
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -19,7 +19,7 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "BDFDB",
|
"name": "BDFDB",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.9.8",
|
"version": "1.9.9",
|
||||||
"description": "Required Library for DevilBro's Plugins"
|
"description": "Required Library for DevilBro's Plugins"
|
||||||
},
|
},
|
||||||
"rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js`
|
"rawUrl": `https://mwittrien.github.io/BetterDiscordAddons/Library/0BDFDB.plugin.js`
|
||||||
|
@ -8285,7 +8285,7 @@ module.exports = (_ => {
|
||||||
return e.methodArguments[0].id == InternalData.myId ? e.methodArguments[0].banner : e.callOriginalMethod();
|
return e.methodArguments[0].id == InternalData.myId ? e.methodArguments[0].banner : e.callOriginalMethod();
|
||||||
}});
|
}});
|
||||||
|
|
||||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.BannerUtils, "getUserBannerURLForContext", {instead: e => {
|
BDFDB.PatchUtils.patch(this, LibraryModules.BannerUtils, "getUserBannerURLForContext", {instead: e => {
|
||||||
return e.methodArguments[0].user && e.methodArguments[0].user.id == InternalData.myId ? e.methodArguments[0].user.banner : e.callOriginalMethod();
|
return e.methodArguments[0].user && e.methodArguments[0].user.id == InternalData.myId ? e.methodArguments[0].user.banner : e.callOriginalMethod();
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
|
|
@ -160,7 +160,7 @@ module.exports = (_ => {
|
||||||
MessageContent: "type",
|
MessageContent: "type",
|
||||||
Reaction: "render",
|
Reaction: "render",
|
||||||
ReactorsComponent: "render",
|
ReactorsComponent: "render",
|
||||||
UserMention: "UserMention",
|
UserMention: "default",
|
||||||
RichUserMention: "UserMention",
|
RichUserMention: "UserMention",
|
||||||
ChannelReply: "default",
|
ChannelReply: "default",
|
||||||
MemberListItem: "render",
|
MemberListItem: "render",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name RemoveBlockedUsers
|
* @name RemoveBlockedUsers
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.3.4
|
* @version 1.3.5
|
||||||
* @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,8 +17,13 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "RemoveBlockedUsers",
|
"name": "RemoveBlockedUsers",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.3.4",
|
"version": "1.3.5",
|
||||||
"description": "Removes blocked Messages/Users"
|
"description": "Removes blocked Messages/Users"
|
||||||
|
},
|
||||||
|
"changeLog": {
|
||||||
|
"fixed": {
|
||||||
|
"Member List Scroll Issue": "Fixed Issue where the Member list would stop loading Users after a certain scroll length"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -359,8 +364,8 @@ module.exports = (_ => {
|
||||||
let newRows = [], newGroups = [];
|
let newRows = [], newGroups = [];
|
||||||
for (let i in e.instance.props.rows) {
|
for (let i in e.instance.props.rows) {
|
||||||
let row = e.instance.props.rows[i];
|
let row = e.instance.props.rows[i];
|
||||||
if (row.type != "MEMBER") newRows.push(row);
|
if (!row || row.type != "MEMBER") newRows[i] = row;
|
||||||
else if (!row.user || !BDFDB.LibraryModules.RelationshipStore.isBlocked(row.user.id)) newRows.push(row);
|
else if (!row.user || !BDFDB.LibraryModules.RelationshipStore.isBlocked(row.user.id)) newRows[i] = row;
|
||||||
else {
|
else {
|
||||||
let found = false, rowIndex = i - 1;
|
let found = false, rowIndex = i - 1;
|
||||||
while (!found && rowIndex > -1) {
|
while (!found && rowIndex > -1) {
|
||||||
|
@ -381,8 +386,11 @@ module.exports = (_ => {
|
||||||
newGroups[i] = Object.assign({}, e.instance.props.groups[i], {index: indexSum});
|
newGroups[i] = Object.assign({}, e.instance.props.groups[i], {index: indexSum});
|
||||||
if (e.instance.props.groups[i].count > 0) indexSum += (e.instance.props.groups[i].count + 1);
|
if (e.instance.props.groups[i].count > 0) indexSum += (e.instance.props.groups[i].count + 1);
|
||||||
}
|
}
|
||||||
|
if (e.instance.props.rows.length > 2000 && !window.a) window.a = e.instance.props.rows;
|
||||||
|
|
||||||
|
for (let i in newRows) if (newRows[i] && newRows[i].type == "GROUP" && newRows[i].count <= 0) newRows[i] = null;
|
||||||
e.instance.props.groups = newGroups.filter(g => g && g.count > 0);
|
e.instance.props.groups = newGroups.filter(g => g && g.count > 0);
|
||||||
e.instance.props.rows = newRows.filter(r => r && (r.type != "GROUP" || r.count > 0));
|
e.instance.props.rows = newRows;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue