Fixed more unknown user errors

This commit is contained in:
RogueException
2016-06-12 23:41:13 -03:00
parent 227643c0fc
commit 610b2335d1

View File

@@ -30,7 +30,9 @@ namespace Discord
public CachedGuildUser GetUser(ulong id, bool skipCheck = false)
{
var user = Guild.GetUser(id);
if (user != null && !skipCheck)
if (skipCheck) return user;
if (user != null)
{
ulong perms = Permissions.ResolveChannel(user, this, user.GuildPermissions.RawValue);
if (Permissions.GetValue(perms, ChannelPermission.ReadMessages))