mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-12 10:18:27 -04:00
.banktake had ok/error responses flipped. No functional change, closes #409
This commit is contained in:
@@ -77,14 +77,14 @@ public partial class Gambling
|
|||||||
{
|
{
|
||||||
if (await _bank.TakeAsync(userId, amount))
|
if (await _bank.TakeAsync(userId, amount))
|
||||||
{
|
{
|
||||||
|
await ctx.OkAsync();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount),
|
await ReplyErrorLocalizedAsync(strs.take_fail(N(amount),
|
||||||
_client.GetUser(userId)?.ToString()
|
_client.GetUser(userId)?.ToString()
|
||||||
?? userId.ToString(),
|
?? userId.ToString(),
|
||||||
CurrencySign));
|
CurrencySign));
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
await ctx.OkAsync();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task BankAwardInternalAsync(long amount, ulong userId)
|
private async Task BankAwardInternalAsync(long amount, ulong userId)
|
||||||
|
Reference in New Issue
Block a user