🚑 Fix setting type

This commit is contained in:
SebClem 2022-06-17 19:12:22 +02:00
parent 3fa9f8f7a1
commit f8b134df34
Signed by: sebclem
GPG Key ID: 5A4308F6A359EA50
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
package net.Broken.Api.Data.Settings;
public record Value(String id, String value) {
public record Value(String id, Object value) {
}

View File

@ -28,8 +28,8 @@ public class SettingService {
List<SettingGroup> 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<Value> 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<Value> 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<Value> 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<Value> toReturn = new ArrayList<>();
toReturn.add(new Value(
"auto_voice",
String.valueOf(pref.isAutoVoice())
pref.isAutoVoice()
)
);
toReturn.add(new Value(