forked from EllieBotDevs/elliebot
Fixed pagination, for real this time
This commit is contained in:
parent
c5c307b440
commit
831f21580f
9 changed files with 44 additions and 111 deletions
src/EllieBot/Modules/Xp
|
@ -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)
|
||||
|
|
Reference in a new issue