Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2022-10-16 20:18:54 +02:00 committed by GitHub
parent 6e1b922b7f
commit 0fd1325782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 2.7.9
* @version 2.8.0
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -4120,7 +4120,7 @@ module.exports = (_ => {
BDFDB.DiscordUtils.setSetting = function (category, key, value) {
if (!category || !key) return;
let store = BDFDB.DiscordUtils.getSettingsStore();
if (store) store.updateAsync("status", settings => {
if (store) store.updateAsync(category, settings => {
if (!settings) return;
if (!settings[key]) settings[key] = {};
if (BDFDB.ObjectUtils.is(value)) for (let k in value) settings[key][k] = value[k];