From 1b06d4839050045a2e2be672d17149e721b9c1a7 Mon Sep 17 00:00:00 2001 From: Lighty Date: Sun, 2 Feb 2020 22:53:23 +0100 Subject: [PATCH] Fix startup crashes --- Plugins/1XenoLib.plugin.js | 2 +- .../BetterUnavailableGuilds.plugin.js | 8 ++++---- Plugins/BetterUnavailableGuilds/CHANGELOG.md | 3 +++ Plugins/CrashRecovery/CHANGELOG.md | 3 +++ Plugins/CrashRecovery/CrashRecovery.plugin.js | 8 ++++---- Plugins/MentionAliasesRedux/CHANGELOG.md | 3 +++ .../MentionAliasesRedux/MentionAliasesRedux.plugin.js | 8 ++++---- Plugins/SaveToRedux/CHANGELOG.md | 3 +++ Plugins/SaveToRedux/SaveToRedux.plugin.js | 8 ++++---- Plugins/UnreadBadgesRedux/CHANGELOG.md | 3 +++ Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js | 10 +++++----- 11 files changed, 37 insertions(+), 22 deletions(-) diff --git a/Plugins/1XenoLib.plugin.js b/Plugins/1XenoLib.plugin.js index 8c74c31..f475814 100644 --- a/Plugins/1XenoLib.plugin.js +++ b/Plugins/1XenoLib.plugin.js @@ -1422,7 +1422,7 @@ var XenoLib = (() => { { header, children: [ - TextElement({ + BdApi.React.createElement(TextElement, { color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install it.`] }) diff --git a/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js b/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js index 18b6acf..17a92f6 100644 --- a/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js +++ b/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js @@ -41,16 +41,16 @@ var BetterUnavailableGuilds = (() => { twitter_username: '' } ], - version: '0.2.2', + version: '0.2.3', description: 'Makes unavailable guilds (servers) still show in the list, and be able to drag it around.', github: 'https://github.com/1Lighty', github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/BetterUnavailableGuilds/BetterUnavailableGuilds.plugin.js' }, changelog: [ { - title: 'ED is bad', + title: 'sad', type: 'added', - items: ['Fixed plugin not working AT ALL in ED', 'Fixed a specific error where plugin loaded, but you are not logged in yet'] + items: ['Fixed crash if XenoLib or ZeresPluginLib were missing'] } ], defaultConfig: [ @@ -435,7 +435,7 @@ var BetterUnavailableGuilds = (() => { Object.assign( { header, - children: [TextElement({ color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], + children: [BdApi.React.createElement(TextElement, { color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], red: false, confirmText: 'Download Now', cancelText: 'Cancel', diff --git a/Plugins/BetterUnavailableGuilds/CHANGELOG.md b/Plugins/BetterUnavailableGuilds/CHANGELOG.md index 4122433..ccb68b4 100644 --- a/Plugins/BetterUnavailableGuilds/CHANGELOG.md +++ b/Plugins/BetterUnavailableGuilds/CHANGELOG.md @@ -1,4 +1,7 @@ # [BetterUnavailableGuilds](https://1lighty.github.io/BetterDiscordStuff/?plugin=BetterUnavailableGuilds "BetterUnavailableGuilds") Changelog +### 0.2.3 +- Fixed crash if XenoLib or ZeresPluginLib were missing + ### 0.2.2 - Fixed plugin not working AT ALL in ED - Fixed a specific error where plugin loaded, but you are not logged in yet diff --git a/Plugins/CrashRecovery/CHANGELOG.md b/Plugins/CrashRecovery/CHANGELOG.md index 2510d2c..c71ca5e 100644 --- a/Plugins/CrashRecovery/CHANGELOG.md +++ b/Plugins/CrashRecovery/CHANGELOG.md @@ -1,4 +1,7 @@ # [CrashRecovery](https://1lighty.github.io/BetterDiscordStuff/?plugin=CrashRecovery "CrashRecovery") Changelog +### 0.1.3 +- Fixed crash if XenoLib or ZeresPluginLib were missing + ### 0.1.2 - Fixed crash screen being blank if a plugin failed to stop properly. - Now closes all modals, including the special types that are not stored inside ModalStack. diff --git a/Plugins/CrashRecovery/CrashRecovery.plugin.js b/Plugins/CrashRecovery/CrashRecovery.plugin.js index fcf10be..728223e 100644 --- a/Plugins/CrashRecovery/CrashRecovery.plugin.js +++ b/Plugins/CrashRecovery/CrashRecovery.plugin.js @@ -41,16 +41,16 @@ var CrashRecovery = (() => { twitter_username: '' } ], - version: '0.1.2', + version: '0.1.3', description: 'THIS IS AN EXPERIMENTAL PLUGIN! In the event that your Discord crashes, the plugin enables you to get Discord back to a working state, without needing to reload at all.', github: 'https://github.com/1Lighty', github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/CrashRecovery/CrashRecovery.plugin.js' }, changelog: [ { - title: 'fixed', + title: 'sad', type: 'fixed', - items: ['Fixed crash screen being blank if a plugin failed to stop properly.', 'Now closes all modals, including the special types that are not stored inside ModalStack.'] + items: ['Fixed crash if XenoLib or ZeresPluginLib were missing'] } ] }; @@ -351,7 +351,7 @@ var CrashRecovery = (() => { Object.assign( { header, - children: [TextElement({ color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], + children: [BdApi.React.createElement(TextElement, { color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], red: false, confirmText: 'Download Now', cancelText: 'Cancel', diff --git a/Plugins/MentionAliasesRedux/CHANGELOG.md b/Plugins/MentionAliasesRedux/CHANGELOG.md index 6828bdf..2adc942 100644 --- a/Plugins/MentionAliasesRedux/CHANGELOG.md +++ b/Plugins/MentionAliasesRedux/CHANGELOG.md @@ -1,4 +1,7 @@ # [MentionAliasesRedux](https://1lighty.github.io/BetterDiscordStuff/?plugin=MentionAliasesRedux "MentionAliasesRedux") Changelog +### 2.0.5 +- Fixed crash if XenoLib or ZeresPluginLib were missing + ### 2.0.4 - Fixed tags in chat not showing but throwing an error instead in canary - Fixed tags not showing in new friends list diff --git a/Plugins/MentionAliasesRedux/MentionAliasesRedux.plugin.js b/Plugins/MentionAliasesRedux/MentionAliasesRedux.plugin.js index 6b20ba4..e59e945 100644 --- a/Plugins/MentionAliasesRedux/MentionAliasesRedux.plugin.js +++ b/Plugins/MentionAliasesRedux/MentionAliasesRedux.plugin.js @@ -41,16 +41,16 @@ var MentionAliasesRedux = (() => { twitter_username: '' } ], - version: '2.0.4', + version: '2.0.5', description: 'Set custom @mention aliases, that can also appear next to their name (nearly) anywhere, as well as have mention groups to mention multiple people at once.', github: 'https://github.com/1Lighty', github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/MentionAliasesRedux/MentionAliasesRedux.plugin.js' }, changelog: [ { - title: 'fixed', + title: 'sad', type: 'fixed', - items: ['Fixed tags in chat not showing but throwing an error instead in canary', 'Fixed tags not showing in new friends list'] + items: ['Fixed crash if XenoLib or ZeresPluginLib were missing'] } ], defaultConfig: [ @@ -1175,7 +1175,7 @@ var MentionAliasesRedux = (() => { Object.assign( { header, - children: [TextElement({ color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], + children: [BdApi.React.createElement(TextElement, { color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], red: false, confirmText: 'Download Now', cancelText: 'Cancel', diff --git a/Plugins/SaveToRedux/CHANGELOG.md b/Plugins/SaveToRedux/CHANGELOG.md index 6166eff..1f68481 100644 --- a/Plugins/SaveToRedux/CHANGELOG.md +++ b/Plugins/SaveToRedux/CHANGELOG.md @@ -1,4 +1,7 @@ # [SaveToRedux](https://1lighty.github.io/BetterDiscordStuff/?plugin=SaveToRedux "SaveToRedux") Changelog +### 2.0.8 +- Fixed crash if XenoLib or ZeresPluginLib were missing + ### 2.0.7 - Fixed "Disable this warning and save this option" not saving the option when a file was conflicting - Corrected "Save As..." showing "Images" as file type even if it wasn't an image diff --git a/Plugins/SaveToRedux/SaveToRedux.plugin.js b/Plugins/SaveToRedux/SaveToRedux.plugin.js index 0e8c322..6467f3f 100644 --- a/Plugins/SaveToRedux/SaveToRedux.plugin.js +++ b/Plugins/SaveToRedux/SaveToRedux.plugin.js @@ -41,16 +41,16 @@ var SaveToRedux = (() => { twitter_username: '' } ], - version: '2.0.7', + version: '2.0.8', description: 'Allows you to save images, videos, profile icons, server icons, reactions, emotes and custom status emotes to any folder quickly.', github: 'https://github.com/1Lighty', github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/SaveToRedux/SaveToRedux.plugin.js' }, changelog: [ { - title: 'Fixed', + title: 'sad', type: 'fixed', - items: ['Fixed "Disable this warning and save this option" not saving the option when a file was conflicting', 'Corrected "Save As..." showing "Images" as file type even if it wasn\'t an image', 'Added option to append server or DM recipients name to downloaded images/files. Also as a custom option named `name` (how creative)'] + items: ['Fixed crash if XenoLib or ZeresPluginLib were missing'] } ], defaultConfig: [ @@ -930,7 +930,7 @@ var SaveToRedux = (() => { Object.assign( { header, - children: [TextElement({ color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], + children: [BdApi.React.createElement(TextElement, { color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], red: false, confirmText: 'Download Now', cancelText: 'Cancel', diff --git a/Plugins/UnreadBadgesRedux/CHANGELOG.md b/Plugins/UnreadBadgesRedux/CHANGELOG.md index b1b9c70..c4f4d92 100644 --- a/Plugins/UnreadBadgesRedux/CHANGELOG.md +++ b/Plugins/UnreadBadgesRedux/CHANGELOG.md @@ -1,4 +1,7 @@ # [UnreadBadgesRedux](https://1lighty.github.io/BetterDiscordStuff/?plugin=UnreadBadgesRedux "UnreadBadgesRedux") Changelog +### 1.0.1 +- Fixed crash if XenoLib or ZeresPluginLib were missing + ### 1.0.0 - Initial release - Redux has been released! diff --git a/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js b/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js index d515ef8..3c592b7 100644 --- a/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js +++ b/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js @@ -41,16 +41,16 @@ var UnreadBadgesRedux = (() => { twitter_username: '' } ], - version: '1.0.0', + version: '1.0.1', description: 'Adds a number badge to server icons and channels.', github: 'https://github.com/1Lighty', github_raw: 'https://raw.githubusercontent.com/1Lighty/BetterDiscordPlugins/master/Plugins/UnreadBadgesRedux/UnreadBadgesRedux.plugin.js' }, changelog: [ { - title: 'Redux has been released!', - type: 'added', - items: ["That is all. I don't think much else needs to be said here, does it? It Just Works(tm).", 'Oh yeah, I added a ton of options so have fun with that.'] + title: 'sad', + type: 'fixed', + items: ['Fixed crash if XenoLib or ZeresPluginLib were missing'] } ], defaultConfig: [ @@ -561,7 +561,7 @@ var UnreadBadgesRedux = (() => { Object.assign( { header, - children: [TextElement({ color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], + children: [BdApi.React.createElement(TextElement, { color: TextElement.Colors.PRIMARY, children: [`${content} Please click Download Now to install ${(bothLibsMissing && 'them') || 'it'}.`] })], red: false, confirmText: 'Download Now', cancelText: 'Cancel',