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

@ -269,7 +269,8 @@ namespace NadekoBot.Modules.Administration
{
autoDeleteSelfAssignedRoleMessages = uow.GuildConfigs.For(Context.Guild.Id, set => set).AutoDeleteSelfAssignedRoleMessages;
roles = uow.SelfAssignedRoles.GetFromGuild(Context.Guild.Id)
.SelectMany(x => x);
.SelectMany(x => x)
.ToArray();
}
if (roles.FirstOrDefault(r => r.RoleId == role.Id) == null)
{