Fixed pagination, for real this time

This commit is contained in:
Toastie 2024-06-29 15:14:59 +12:00
parent c5c307b440
commit 831f21580f
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
9 changed files with 44 additions and 111 deletions
src/EllieBot/Modules/Xp

View file

@ -480,7 +480,8 @@ public partial class Xp : EllieModule<XpService>
ctx.User.Id,
button,
OnShopUse,
(key, itemType));
(key, itemType),
clearAfter: false);
return inter;
}
@ -494,7 +495,9 @@ public partial class Xp : EllieModule<XpService>
ctx.User.Id,
button,
OnShopBuy,
(key, itemType));
(key, itemType),
singleUse: true,
clearAfter: false);
return inter;
}
@ -577,6 +580,10 @@ public partial class Xp : EllieModule<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)