From f8b134df34d0c353cadb74ca38d429660ea34795 Mon Sep 17 00:00:00 2001 From: SebClem Date: Fri, 17 Jun 2022 19:12:22 +0200 Subject: [PATCH] :ambulance: Fix setting type --- src/main/java/net/Broken/Api/Data/Settings/Value.java | 2 +- .../java/net/Broken/Api/Services/SettingService.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/Broken/Api/Data/Settings/Value.java b/src/main/java/net/Broken/Api/Data/Settings/Value.java index 5aff82d..4050c54 100644 --- a/src/main/java/net/Broken/Api/Data/Settings/Value.java +++ b/src/main/java/net/Broken/Api/Data/Settings/Value.java @@ -1,4 +1,4 @@ package net.Broken.Api.Data.Settings; -public record Value(String id, String value) { +public record Value(String id, Object value) { } diff --git a/src/main/java/net/Broken/Api/Services/SettingService.java b/src/main/java/net/Broken/Api/Services/SettingService.java index 5f54257..f7407f4 100644 --- a/src/main/java/net/Broken/Api/Services/SettingService.java +++ b/src/main/java/net/Broken/Api/Services/SettingService.java @@ -28,8 +28,8 @@ public class SettingService { List toReturn = new ArrayList<>(); toReturn.add(getWelcomeGroup()); toReturn.add(getDefaultRoleGroup()); - toReturn.add(getDailyGroup()); toReturn.add(getAutoVoiceChannelGroup()); + toReturn.add(getDailyGroup()); return toReturn; } @@ -145,7 +145,7 @@ public class SettingService { List toReturn = new ArrayList<>(); toReturn.add(new Value( "welcome_enable", - String.valueOf(pref.isWelcome()) + pref.isWelcome() ) ); toReturn.add(new Value( @@ -164,7 +164,7 @@ public class SettingService { List toReturn = new ArrayList<>(); toReturn.add(new Value( "default_role", - String.valueOf(pref.isDefaultRole()) + pref.isDefaultRole() ) ); toReturn.add(new Value( @@ -178,7 +178,7 @@ public class SettingService { List toReturn = new ArrayList<>(); toReturn.add(new Value( "daily_madame", - String.valueOf(pref.isDefaultRole()) + pref.isDailyMadame() ) ); return toReturn; @@ -188,7 +188,7 @@ public class SettingService { List toReturn = new ArrayList<>(); toReturn.add(new Value( "auto_voice", - String.valueOf(pref.isAutoVoice()) + pref.isAutoVoice() ) ); toReturn.add(new Value(