Skip to content

Commit

Permalink
Fix issue if no channel ids provided
Browse files Browse the repository at this point in the history
  • Loading branch information
versx authored May 7, 2021
1 parent dfdf8f5 commit 1925f15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Extensions/DiscordExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public static bool HasRequiredRoles(this DiscordMember member, List<DiscordConfi
foreach (var server in servers)
{
if (server.RequiredRoles.Count == 0)
continue;
return true;

var memberRoles = member.Roles?.Select(x => x.Id)?.ToList();
if (memberRoles == null)
Expand All @@ -71,4 +71,4 @@ public static bool IsValidChannel(this ulong channelId, List<DiscordConfig> serv
return false;
}
}
}
}

0 comments on commit 1925f15

Please sign in to comment.