diff --git a/Plugins/EditServers/EditServers.plugin.js b/Plugins/EditServers/EditServers.plugin.js index 74618cf253..b7f5348ab0 100644 --- a/Plugins/EditServers/EditServers.plugin.js +++ b/Plugins/EditServers/EditServers.plugin.js @@ -3,17 +3,13 @@ class EditServers { getName () {return "EditServers";} - getVersion () {return "2.0.1";} + getVersion () {return "2.0.2";} getAuthor () {return "DevilBro";} getDescription () {return "Allows you to change the icon, name and color of servers.";} - initConstructor () { - this.changelog = { - "improved":[["ServerFolders bug","Fixed a bug that prevented tooltips from showing when an edited server is in a folder"]] - }; - + initConstructor () { this.labels = {}; this.patchModules = { @@ -522,9 +518,11 @@ class EditServers { if (!info || !icon || !icon.parentElement) return; if (icon.EditServersChangeObserver && typeof icon.EditServersChangeObserver.disconnect == "function") icon.EditServersChangeObserver.disconnect(); let data = this.getGuildData(info.id, icon); - if (data.url || data.shortName || data.removeIcon || icon.getAttribute("changed-by-editservers")) { + if (data.url || data.name || data.shortName || data.removeIcon || icon.getAttribute("changed-by-editservers")) { let url = data.url || BDFDB.getGuildIcon(info.id); + let name = data.name || info.name || ""; let shortname = data.url ? "" : (data.shortName ? data.shortName : (info.icon && !data.removeIcon ? "" : info.acronym)); + if (BDFDB.containsClass(icon.parentElement, BDFDB.disCN.guildiconwrapper)) icon.parentElement.setAttribute("aria-label", name); if (icon.tagName == "IMG") { icon.setAttribute("src", data.removeIcon ? null : url); let removeicon = data.removeIcon && BDFDB.containsClass(icon, BDFDB.disCN.guildicon); @@ -550,7 +548,7 @@ class EditServers { icon.style.setProperty("background-size", "cover"); } } - if (data.url || data.shortName || data.removeIcon) { + if (data.url || data.name || data.shortName || data.removeIcon) { icon.setAttribute("changed-by-editservers", true); icon.EditServersChangeObserver = new MutationObserver((changes, _) => { changes.forEach( diff --git a/Plugins/ServerFolders/ServerFolders.plugin.js b/Plugins/ServerFolders/ServerFolders.plugin.js index d8c67a44fe..33ed27f376 100644 --- a/Plugins/ServerFolders/ServerFolders.plugin.js +++ b/Plugins/ServerFolders/ServerFolders.plugin.js @@ -3,7 +3,7 @@ class ServerFolders { getName () {return "ServerFolders";} - getVersion () {return "6.2.8";} + getVersion () {return "6.2.9";} getAuthor () {return "DevilBro";} @@ -11,8 +11,8 @@ class ServerFolders { initConstructor () { this.changelog = { - "fixed":[["Animated Server Icons","Animated server icons are now properly animated in the foldercontent"]], - "improved":[["Notifications","Improved the speed in which the notification indicators are displayed on the servers and folders"]] + "fixed":[["Mentions","Fixed mentions not updating properly"]], + "improved":[["BD Guild classes","Added the BD classes for folders"]] }; this.labels = {}; @@ -171,7 +171,7 @@ class ServerFolders { `; this.folderIconMarkup = - `