Merge branch 'v4' into v5

This commit is contained in:
Kwoth
2023-03-24 20:15:37 +01:00
3 changed files with 9 additions and 8 deletions

View File

@@ -78,14 +78,14 @@ public partial class Gambling
{
if (await _bank.TakeAsync(userId, amount))
{
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount),
_client.GetUser(userId)?.ToString()
?? userId.ToString(),
CurrencySign));
await ctx.OkAsync();
return;
}
await ctx.OkAsync();
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount),
_client.GetUser(userId)?.ToString()
?? userId.ToString(),
CurrencySign));
}
private async Task BankAwardInternalAsync(long amount, ulong userId)