Starting with this version the plugin can work without using ZeresPluginLibrary/0PluginLibrary and in case of anything the plugin now has its own update checker (can be disabled in the settings). As this is a potentially unstable release, it is recommended to backup your settings or roll back to a previous version if necessary.
"DiscordSelectors" in 0PluginLibrary stopped working and was replaced.
"showAlertModal" no longer works, the function has been replaced by a more cursed counterpart.
This update changes the 25 MB limit to 10 MB for "Prevent sending files larger than" option in accordance with the new Discord's policy.
Discord replaced "-" in names of classes with "__", which prevented plugin from finding essential elements using selectors. After a quick thought, I just got rid of those spellings, so everything should work now.
You can congratulate me, after a year I found a function that allows you to open folders... No idea if it works on Linux or Mac, but at least it's some success! <(─‿‿─)>
In the previous update "Buffer" module was replaced with another function with "atob" method. Unfortunately, in the case of some gifs this method caused a crash. There are no such problems when using a third-party library with decode function. For now, I will not overload the plugin by adding new libraries. It will be integrated when the "Buffer" module stops working completely.
The deprecated "Buffer" module has been replaced with alternative function.
Unfortunately I haven't been able to combine sending a picture with active reply mode, so to avoid new bug the reply mode will be canceled before sending the picture.
Added support for an older version of Discord's upload module, because it is not yet updated for everyone.
The plugin's upload module has been updated in accordance with the Discord update.
Updated the limit setting of sent file size from 8 MB to 25 MB. Note that resizing (option in the plugin's settings) large GIFs may cause freezes and very long uploading.
This update should fix some random crashes due to loading of pictures preview. Hope that it will not cause new bugs.
The checkbox for a spoiler has been added to the picture panel. If it is checked, then links and files will be sent as spoilers.
New Discord update broke the "upload" module, so I replaced it with another.
Adds an option to prevent files larger than 8 MB from being sent. It's enabled by default.
Now "gifsicle" doesn't cause an error when there are spaces in a file name. Also "refresh" button on the emoji panel no longer creates a copy of it.
Fixed a bug with panel disappearing due to Discord's element name change. Also added one new option in settings under the image resizing section that allows to add the subpanel for image resizing to the emoji panel.
External module "gifsicle-wasm-browser" is now used instead of "gifsicle.exe".
Looks like access to the "child_process" module was irrevocably lost (BetterDiscord/BetterDiscord#1443), so I had to make a compromise method.
Fixed sending the original versions of the local files, which was broken by the new horrible Discord update (details in version 0.4.2 changelog).
There is big issue with new Discord update. It break almost everything. This fix should repair core utilities, but not all. Currently you cannot open folders or resize gifs. You also can read more details here: https://imgur.com/a/SPFvhpZ
Changed the plugin's method of checking language and platform.
Fixed a fresh issue with not sending files, which happens after Discord updated their "upload" module. Also folder scanning should now become compatible with other OSs.
This update should at least temporarily fix the issues related to deletion of DiscordAPI from ZeresLibrary (slightly delayed with the update because I was preparing for upcoming birthday).
Fixed incorrect display of the active category when switching categories using buttons on the emoji panel. Issue started to appear in the new version of Discord.
Fixed the problem with displaying the animation for preview of loading images. Also made a janky fix for missing color picker in the settings (at the moment this module is broken), but it may require to delete/edit CustomPanelForSendingPictures.configuration or reselect color in the settings.
Replaced the function with option for sending messages with images. Also added animation for preview of loading images and content will no longer jump when image previews are loading.
Fixed the button missing when the panel is opened.
Fixed the issue with selecting Stickers or any additional tab on the panel.
Fixed issue with Buffer module.
Fixed the plugin functioning with "Preview emojis, mentions, and markdown syntax as you type" Discord beta option. Now messages will be sent without capturing redundant text (when plugin's setting for sending messages together with pictures is turned on).
Fixed the plugin functioning with "Preview emojis, mentions, and markdown syntax as you type" Discord beta option. Now messages will be sent regardless of this option, but if this beta function is turned on, then messages will not have a markdown in them because of it.
Now Repeat last sent picture option will not send a picture for the entire time the key is pressed, now it requires releasing "V" key.
Fixed for Powercord (with BDCompat).
Checkboxes now work correctly.
Code is improved a little. Also added temporary fix for ZeresPluginLibrary (checkboxes now displayed as sliders).
Added option for automatic proportional scaling of pictures from local or web files to set size. Animation pictures included with sub-option.
Added search bar for pictures in the panel.
Now failing to load local and web files will be displayed with error preview that will not be clickable. Also fixed background CSS.
From now on file previews in the panel will be loaded asynchronously, which solves problem with visual freeze in case of large folders. However, still try to avoid using folders with big amount of pictures, see TODO for details.
Corrected buttons style with large font-size.
Improved button design and added 1 new button with method for opening the Main folder method on the picture panel.
Now webp filetype is allowed to be scanned too.
Made more reliable use of libraries and corrected code a little.
Removed unnecessary pieces of code, and scan function is now working better now than before.
Added RU localization for everything expect changelogs. Also from now on picture's name will be displayed when mouse is over its preview.
Fixed emtpy folder in subfolder bug and added following options: ability to Repeat last sent, Auto close panel, Sending file cooldown, to change Main folder path and Main folder display name.
Discord has very weird checks for messages, so it was necessary to add other checks.
Fixed issue with clicking between gif and emojis button after picture button +other small changes.
Added settings for color selection of section's name and settings for sending text before the file.
From now on instead of "config" for configuration file using "configuration" in the name.
It should fix issue with scanning system which sometimes happens.
Better sections/groups name display and fixed refresh button for OnlyForcedUpdate option.
Fixed some bugs with subfolders and reorganized config files + some small additional fixes.
Fixed display of selected button and bug with disappearing click on previous button.
From now on subfolders will be displayed as sections/groups in the panel.
Slightly changed structure. The plugin should start working more stable.
Fixed styles behaviour.
Fixed board size.
Added scroller and fixed resize bugs.
Corrected main functionality and fixed plugin's info.
Added main functionality.