From c7181718e220563fe59417802b14c1a9515275a0 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Sat, 20 Mar 2021 21:46:22 +0100 Subject: [PATCH] stuff --- .../MessageUtilities.plugin.js | 17 ++++++----------- .../NotificationSounds.plugin.js | 19 +++++++------------ 2 files changed, 13 insertions(+), 23 deletions(-) diff --git a/Plugins/MessageUtilities/MessageUtilities.plugin.js b/Plugins/MessageUtilities/MessageUtilities.plugin.js index 182779a321..1a175c3130 100644 --- a/Plugins/MessageUtilities/MessageUtilities.plugin.js +++ b/Plugins/MessageUtilities/MessageUtilities.plugin.js @@ -2,7 +2,7 @@ * @name MessageUtilities * @author DevilBro * @authorId 278543574059057154 - * @version 1.8.8 + * @version 1.8.9 * @description Adds several Quick Actions for Messages (Delete, Edit, Pin, etc.) * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,13 +17,8 @@ module.exports = (_ => { "info": { "name": "MessageUtilities", "author": "DevilBro", - "version": "1.8.8", + "version": "1.8.9", "description": "Adds several Quick Actions for Messages (Delete, Edit, Pin, etc.)" - }, - "changeLog": { - "fixed": { - "Replies": "Reply To/Pin now also works on Messages that contain a reply" - } } }; @@ -188,8 +183,8 @@ module.exports = (_ => { reset: true, disabled: !settings[action], ref: instance => {if (instance) keyRecorderIns = instance;}, - onChange: keyCombo => { - bindings[action].keycombo = keyCombo; + onChange: value => { + bindings[action].keycombo = value; BDFDB.DataUtils.save(bindings, this, "bindings"); this.SettingsUpdated = true; } @@ -199,8 +194,8 @@ module.exports = (_ => { options: Object.keys(clickMap).map((label, i) => ({value: i, label: label})), disabled: !settings[action], ref: instance => {if (instance) clickSelectorIns = instance;}, - onChange: choice => { - bindings[action].click = choice.value; + onChange: value => { + bindings[action].click = value; BDFDB.DataUtils.save(bindings, this, "bindings"); this.SettingsUpdated = true; } diff --git a/Plugins/NotificationSounds/NotificationSounds.plugin.js b/Plugins/NotificationSounds/NotificationSounds.plugin.js index d72e48e03c..27c51bde71 100644 --- a/Plugins/NotificationSounds/NotificationSounds.plugin.js +++ b/Plugins/NotificationSounds/NotificationSounds.plugin.js @@ -2,7 +2,7 @@ * @name NotificationSounds * @author DevilBro * @authorId 278543574059057154 - * @version 3.5.9 + * @version 3.6.0 * @description Allows you to replace the native Sounds with custom Sounds * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -17,13 +17,8 @@ module.exports = (_ => { "info": { "name": "NotificationSounds", "author": "DevilBro", - "version": "3.5.9", + "version": "3.6.0", "description": "Allows you to replace the native Sounds with custom Sounds" - }, - "changeLog": { - "fixed": { - "Incoming Call": "Works again, you'll most likely need to reload Discord (Ctrl + R) for it to be fixed" - } } }; @@ -369,9 +364,9 @@ module.exports = (_ => { value: choices[type].category, options: Object.keys(audios).map(name => ({value: name, label: name})), searchable: true, - onChange: category => { - choices[type].category = category.value; - choices[type].sound = Object.keys(audios[category.value] || {})[0]; + onChange: value => { + choices[type].category = value; + choices[type].sound = Object.keys(audios[value] || {})[0]; this.saveChoice(type, true); BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates); } @@ -388,8 +383,8 @@ module.exports = (_ => { value: choices[type].sound, options: Object.keys(audios[choices[type].category] || {}).map(name => ({value: name, label: name})), searchable: true, - onChange: sound => { - choices[type].sound = sound.value; + onChange: value => { + choices[type].sound = value; this.saveChoice(type, true); BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates); }