Possible fix for .iamn close #1742
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user