Possible fix for .iamn close #1742

This commit is contained in:
Master Kwoth
2017-10-23 19:55:36 +02:00
parent fb6d89368e
commit 3005ae3595
4 changed files with 7 additions and 5 deletions

View File

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