Fixed GetChannelPermissions with roles

This commit is contained in:
RogueException
2015-11-09 02:06:04 -04:00
parent a5e2e9ca10
commit 430610a0e7

View File

@@ -25,7 +25,7 @@ namespace Discord
CheckReady();
return channel.PermissionOverwrites
.Where(x => x.TargetType == PermissionTarget.User && x.TargetId == role.Id)
.Where(x => x.TargetType == PermissionTarget.Role && x.TargetId == role.Id)
.Select(x => x.Permissions)
.FirstOrDefault();
}