mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
fix: Fixed pagination, for real this time, closes #435,
dev: removed some old creds migration code, incremented creds version
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user