.tesar now has groups!

This commit is contained in:
Master Kwoth
2017-10-21 12:13:31 +02:00
parent 204cdbfb2b
commit 95ee386475
11 changed files with 2025 additions and 42 deletions

View File

@ -22,7 +22,9 @@ namespace NadekoBot.Core.Services.Database.Repositories.Impl
return true;
}
public IEnumerable<SelfAssignedRole> GetFromGuild(ulong guildId) =>
_set.Where(s => s.GuildId == guildId).ToList();
public IEnumerable<IGrouping<int, SelfAssignedRole>> GetFromGuild(ulong guildId)
=> _set.Where(s => s.GuildId == guildId)
.AsEnumerable()
.GroupBy(x => x.Group);
}
}