Replaced dodgy cast with JSON deserialize method. Not sure why but it worked for a bit then stopped working.

This commit is contained in:
barelyprofessional
2025-04-21 15:35:37 -05:00
parent 85ba9c1592
commit 7f80a4e9c1

View File

@@ -427,7 +427,7 @@ public class BotServices
BuiltIn.Keys.KiwiFarmsGreenColor, BuiltIn.Keys.KiwiFarmsRedColor
]).Result;
_logger.Trace("Jackpot bet has arrived");
if (!settings[BuiltIn.Keys.JackpotBmjUsernames].ToType<List<string>>().Contains(bet.User))
if (!settings[BuiltIn.Keys.JackpotBmjUsernames].JsonDeserialize<List<string>>()!.Contains(bet.User))
{
return;
}