Updated Changelog, version upped to 5.1.11

Ellie might grumble about the ngrpc marmalade not being able to load but it should be fine
This commit is contained in:
Toastie 2024-10-03 19:14:24 +13:00
parent a321cdbe55
commit 4338df0b38
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4
8 changed files with 35 additions and 30 deletions
src/EllieBot/Modules/Gambling

View file

@ -128,7 +128,7 @@ public partial class Gambling : GamblingModule<GamblingService>
customId: "timely:remind_me"),
(smc) => RemindTimelyAction(smc, DateTime.UtcNow.Add(TimeSpan.FromHours(period)))
);
// Creates timely reminder button, parameter in milliseconds.
private EllieInteractionBase CreateRemindMeInteraction(double ms)
=> _inter
@ -167,7 +167,7 @@ public partial class Gambling : GamblingModule<GamblingService>
await Response().Pending(strs.timely_already_claimed(relativeTag)).Interaction(interaction).SendAsync();
return;
}
var patron = await _ps.GetPatronAsync(ctx.User.Id);
@ -646,12 +646,11 @@ public partial class Gambling : GamblingModule<GamblingService>
var cleanRichest = await uow.GetTable<DiscordUser>()
.Where(x => x.UserId.In(users))
.OrderByDescending(x => x.CurrencyAmount)
.Skip(page * perPage)
.Skip(curPage * perPage)
.Take(perPage)
.ToListAsync();
var sg = (SocketGuild)ctx.Guild!;
return cleanRichest.Where(x => sg.GetUser(x.UserId) is not null).ToList();
return cleanRichest;
}
else
{
@ -660,9 +659,6 @@ public partial class Gambling : GamblingModule<GamblingService>
}
}
var res = Response()
.Paginated();
await Response()
.Paginated()
.PageItems(GetTopRichest)