fix: Fixed pagination, for real this time, closes #435,

dev: removed some old creds migration code, incremented creds version
This commit is contained in:
Kwoth
2024-06-27 19:48:39 +00:00
parent ef471c32bb
commit 9da8e4f1c1
9 changed files with 47 additions and 113 deletions

View File

@@ -480,7 +480,8 @@ public partial class Xp : NadekoModule<XpService>
ctx.User.Id,
button,
OnShopUse,
(key, itemType));
(key, itemType),
clearAfter: false);
return inter;
}
@@ -494,7 +495,9 @@ public partial class Xp : NadekoModule<XpService>
ctx.User.Id,
button,
OnShopBuy,
(key, itemType));
(key, itemType),
singleUse: true,
clearAfter: false);
return inter;
}
@@ -577,6 +580,10 @@ public partial class Xp : NadekoModule<XpService>
{
await Response().Error(strs.not_enough(_gss.GetCurrencySign())).SendAsync();
}
else if (result == BuyResult.Success)
{
await _service.UseShopItemAsync(ctx.User.Id, type, key);
}
}
private string GetNotifLocationString(XpNotificationLocation loc)