Add Channel.IsPrivate comment to Message.Member error

This commit is contained in:
RogueException
2015-10-17 04:05:52 -03:00
parent e730134b74
commit d27e74a9ae

View File

@@ -157,10 +157,10 @@ namespace Discord
{
get
{
if (ServerId != null)
if (!Channel.IsPrivate)
return _client.Members[UserId, ServerId];
else
throw new InvalidOperationException("Unable to access Member in a private channel. Use User instead.");
throw new InvalidOperationException("Unable to access Member in a private channel. Use User instead or check for Channel.IsPrivate.");
}
}