forked from EllieBotDevs/elliebot
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:
parent
a321cdbe55
commit
4338df0b38
8 changed files with 35 additions and 30 deletions
src/EllieBot/Modules/Gambling
|
@ -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)
|
||||
|
|
Reference in a new issue