Browse Source

Fixed more unknown user errors

pull/97/head
RogueException 9 years ago
parent
commit
610b2335d1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/Discord.Net/Entities/WebSocket/CachedTextChannel.cs

+ 3
- 1
src/Discord.Net/Entities/WebSocket/CachedTextChannel.cs 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))


Loading…
Cancel
Save