From 82f6156fc21844dad0321982eacd579401e6ec4b Mon Sep 17 00:00:00 2001 From: Faelayis <48393914+Faelayis@users.noreply.github.com> Date: Sat, 28 May 2022 21:24:56 +0700 Subject: [PATCH] Fix settings premid are reset on restart discord --- src/changelog.json | 2 +- src/index.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/changelog.json b/src/changelog.json index 04ce90a..4f1d93f 100644 --- a/src/changelog.json +++ b/src/changelog.json @@ -9,7 +9,7 @@ { "title": "Fixed", "type": "fixed", - "items": ["Features show premid not working"] + "items": ["Settings premid are reset on restart discord", "Features show premid not working"] }, { "title": "Improved", diff --git a/src/index.js b/src/index.js index ef7e1b0..8386d8e 100644 --- a/src/index.js +++ b/src/index.js @@ -33,7 +33,7 @@ const changelog = { { title: "Fixed", type: "fixed", - items: ["Features show premid not working"], + items: ["Settings premid are reset on restart discord", "Features show premid not working"], }, { title: "Improved", @@ -59,7 +59,9 @@ export default class Plugin { if (!this.settings.customstatus_hide) { this.settings.customstatus_hide = ["invisible"]; } - !this.settings.show_premid ? (this.settings.show_premid = true) : undefined; + if (this.settings.show_premid === undefined) { + this.settings.show_premid = true; + } this.updateSettings(); } async connected() {