Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
Fix settings premid are reset on restart discord
Browse files Browse the repository at this point in the history
  • Loading branch information
Faelayis committed May 28, 2022
1 parent 3362b38 commit 82f6156
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/changelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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() {
Expand Down

0 comments on commit 82f6156

Please sign in to comment.