stuff
This commit is contained in:
parent
84282e1176
commit
c7181718e2
|
@ -2,7 +2,7 @@
|
||||||
* @name MessageUtilities
|
* @name MessageUtilities
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 1.8.8
|
* @version 1.8.9
|
||||||
* @description Adds several Quick Actions for Messages (Delete, Edit, Pin, etc.)
|
* @description Adds several Quick Actions for Messages (Delete, Edit, Pin, etc.)
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,13 +17,8 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "MessageUtilities",
|
"name": "MessageUtilities",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "1.8.8",
|
"version": "1.8.9",
|
||||||
"description": "Adds several Quick Actions for Messages (Delete, Edit, Pin, etc.)"
|
"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,
|
reset: true,
|
||||||
disabled: !settings[action],
|
disabled: !settings[action],
|
||||||
ref: instance => {if (instance) keyRecorderIns = instance;},
|
ref: instance => {if (instance) keyRecorderIns = instance;},
|
||||||
onChange: keyCombo => {
|
onChange: value => {
|
||||||
bindings[action].keycombo = keyCombo;
|
bindings[action].keycombo = value;
|
||||||
BDFDB.DataUtils.save(bindings, this, "bindings");
|
BDFDB.DataUtils.save(bindings, this, "bindings");
|
||||||
this.SettingsUpdated = true;
|
this.SettingsUpdated = true;
|
||||||
}
|
}
|
||||||
|
@ -199,8 +194,8 @@ module.exports = (_ => {
|
||||||
options: Object.keys(clickMap).map((label, i) => ({value: i, label: label})),
|
options: Object.keys(clickMap).map((label, i) => ({value: i, label: label})),
|
||||||
disabled: !settings[action],
|
disabled: !settings[action],
|
||||||
ref: instance => {if (instance) clickSelectorIns = instance;},
|
ref: instance => {if (instance) clickSelectorIns = instance;},
|
||||||
onChange: choice => {
|
onChange: value => {
|
||||||
bindings[action].click = choice.value;
|
bindings[action].click = value;
|
||||||
BDFDB.DataUtils.save(bindings, this, "bindings");
|
BDFDB.DataUtils.save(bindings, this, "bindings");
|
||||||
this.SettingsUpdated = true;
|
this.SettingsUpdated = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
* @name NotificationSounds
|
* @name NotificationSounds
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.5.9
|
* @version 3.6.0
|
||||||
* @description Allows you to replace the native Sounds with custom Sounds
|
* @description Allows you to replace the native Sounds with custom Sounds
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -17,13 +17,8 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "NotificationSounds",
|
"name": "NotificationSounds",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "3.5.9",
|
"version": "3.6.0",
|
||||||
"description": "Allows you to replace the native Sounds with custom Sounds"
|
"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,
|
value: choices[type].category,
|
||||||
options: Object.keys(audios).map(name => ({value: name, label: name})),
|
options: Object.keys(audios).map(name => ({value: name, label: name})),
|
||||||
searchable: true,
|
searchable: true,
|
||||||
onChange: category => {
|
onChange: value => {
|
||||||
choices[type].category = category.value;
|
choices[type].category = value;
|
||||||
choices[type].sound = Object.keys(audios[category.value] || {})[0];
|
choices[type].sound = Object.keys(audios[value] || {})[0];
|
||||||
this.saveChoice(type, true);
|
this.saveChoice(type, true);
|
||||||
BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates);
|
BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates);
|
||||||
}
|
}
|
||||||
|
@ -388,8 +383,8 @@ module.exports = (_ => {
|
||||||
value: choices[type].sound,
|
value: choices[type].sound,
|
||||||
options: Object.keys(audios[choices[type].category] || {}).map(name => ({value: name, label: name})),
|
options: Object.keys(audios[choices[type].category] || {}).map(name => ({value: name, label: name})),
|
||||||
searchable: true,
|
searchable: true,
|
||||||
onChange: sound => {
|
onChange: value => {
|
||||||
choices[type].sound = sound.value;
|
choices[type].sound = value;
|
||||||
this.saveChoice(type, true);
|
this.saveChoice(type, true);
|
||||||
BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates);
|
BDFDB.PluginUtils.refreshSettingsPanel(this, settingsPanel, collapseStates);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue