dev: Some packages updated, and small cleanup

This commit is contained in:
Kwoth
2024-09-08 14:16:35 +00:00
parent 6d1edc07cb
commit 33663d7efc
3 changed files with 13 additions and 8 deletions

View File

@@ -88,7 +88,7 @@ public sealed class Bot : IBot
public IReadOnlyList<ulong> GetCurrentGuildIds()
=> Client.Guilds.Select(x => x.Id).ToList().ToList();
=> Client.Guilds.Select(x => x.Id).ToList().AsReadOnly();
private void AddServices()
{
@@ -99,7 +99,7 @@ public sealed class Bot : IBot
using (var uow = _db.GetDbContext())
{
uow.EnsureUserCreated(bot.Id, bot.Username, bot.Discriminator, bot.AvatarId);
AllGuildConfigs = uow.Set<GuildConfig>().GetAllGuildConfigs(startingGuildIdList).ToImmutableArray();
AllGuildConfigs = uow.GuildConfigs.GetAllGuildConfigs(startingGuildIdList);
}
// var svcs = new StandardKernel(new NinjectSettings()