From c91b4ef4485c323861572c3dcb8c8d6dba5be2e8 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Tue, 8 Oct 2019 19:29:17 +0200 Subject: [PATCH] stuff --- Plugins/README.md | 2 +- Plugins/ServerFolders/README.md | 11 +---------- Plugins/ServerFolders/ServerFolders.plugin.js | 4 ++-- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/Plugins/README.md b/Plugins/README.md index 1c12220a90..cfa5573b77 100644 --- a/Plugins/README.md +++ b/Plugins/README.md @@ -41,7 +41,7 @@ - [Reverse Image Search](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ReverseImageSearch) - Adds the option to reverse image search images in discord via several engines. - [Send Large Messages](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SendLargeMessages) - Opens a popout when your message is too large, which allows you to automatically send the message in several smaller messages. - [Server Hider](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerHider) - Adds two options on your server context menu to hide servers in your server list. - - [Server Folders](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerFolders) - Adds the option to create pseudo folders that, click the folder to hide/display all folders between two folders. Easily gets broken by moving server icons. + - [Server Folders](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ServerFolders) - Patches Discords native Folders in a way to open Servers within a Folder in a new bar to the right. Also adds a bunch of new features to more easily organize, customize and manage your Folders. - [Show Hidden Channels](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowHiddenChannels) - Displays all hidden channels that can't be accessed due to role restrictions in a new category. - [Show Image Details](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/ShowImageDetails) - Display the name, size and dimensions of uploaded images (does not include embed images) in the chat as an header or as a tooltip. - [Spell Check](https://github.com/mwittrien/BetterDiscordAddons/tree/master/Plugins/SpellCheck) - Adds a spellcheck to all textareas. diff --git a/Plugins/ServerFolders/README.md b/Plugins/ServerFolders/README.md index 2ab052e42c..d32d7dc9d9 100644 --- a/Plugins/ServerFolders/README.md +++ b/Plugins/ServerFolders/README.md @@ -6,13 +6,4 @@ [paypal-badge]: https://img.shields.io/badge/Paypal-Donate!-%2300457C.svg?logo=paypal&style=flat [paypal-link]: https://paypal.me/MircoWittrien -Adds the feature to create folders to organize your servers. - -- Right click a server > 'Serverfolders' > 'Create Folder' to create a folder. -- To add servers to a folder hold 'Ctrl' and drag the server onto the folder, this will add the server to the folderlist and hide it in the serverlist. -- To open a folder click the folder. A folder can only be opened when it has at least one server in it. -- To remove a server from a folder, open the folder and either right click the server > 'Serverfolders' > 'Remove Server from Folder' or hold 'Del' and click the server in the folderlist. -- Right clicking a folder gives you the option to - - Clear all notifications of the servers within the folder (greyed out if no notifications are present). - - Open the settingspopout for the folder to change the icon, the name and/or the color of the folder. - - Delete the folder. +Patches Discords native Folders in a way to open Servers within a Folder in a new bar to the right. Also adds a bunch of new features to more easily organize, customize and manage your Folders. diff --git a/Plugins/ServerFolders/ServerFolders.plugin.js b/Plugins/ServerFolders/ServerFolders.plugin.js index 6e88fe2f58..f9a464ddc1 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.5.0";} + getVersion () {return "6.5.1";} getAuthor () {return "DevilBro";} @@ -539,7 +539,7 @@ class ServerFolders { data.icons.openicon = folderIcons[data.iconID] ? (!isCustom ? this.createBase64SVG(folderIcons[data.iconID].openicon, data.color1, data.color2) : folderIcons[data.iconID].openicon) : null; data.icons.closedicon = folderIcons[data.iconID] ? (!isCustom ? this.createBase64SVG(folderIcons[data.iconID].closedicon, data.color1, data.color2) : folderIcons[data.iconID].closedicon) : null; BDFDB.saveData(folderid, data, this, "folders"); - instance.handleColorChange(parseInt(BDFDB.colorCONVERT(data.color1 && BDFDB.isObject(data.color1) ? data.color1[Object.keys(data.color1)[0]] : data.color1, "HEX").slice(1), 16)); + instance.handleColorChange(data.color1 ? parseInt(BDFDB.colorCONVERT(data.color1 && BDFDB.isObject(data.color1) ? data.color1[Object.keys(data.color1)[0]] : data.color1, "HEX").slice(1), 16) : null); this.changeFolder(folderid); } });