mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
I wish the compiler was smart enough to catch errors like this
This commit is contained in:
@@ -29,7 +29,7 @@ public class GuessWhatNumberCommand : ICommand
|
||||
return;
|
||||
}
|
||||
|
||||
var wager = Convert.ToDecimal(amount);
|
||||
var wager = Convert.ToDecimal(amount.Value);
|
||||
var guess = Convert.ToInt32(arguments["number"].Value);
|
||||
var gambler = await Money.GetGamblerEntityAsync(user.Id, ct: ctx);
|
||||
if (gambler == null)
|
||||
|
||||
Reference in New Issue
Block a user