Merge branch 'v4' into 'v4'

fixed bank award giving error message instead of checkmark

See merge request Kwoth/nadekobot!294
This commit is contained in:
Kwoth
2023-04-06 00:40:02 +00:00

View File

@@ -91,14 +91,10 @@ public partial class Gambling
{ {
if (await _bank.AwardAsync(userId, amount)) if (await _bank.AwardAsync(userId, amount))
{ {
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount), await ctx.OkAsync();
_client.GetUser(userId)?.ToString()
?? userId.ToString(),
CurrencySign));
return; return;
} }
await ctx.OkAsync();
} }
[Cmd] [Cmd]