Added Member.Channels

This commit is contained in:
RogueException
2015-10-11 03:38:18 -03:00
parent 463f2e574d
commit 4fe97c4876

View File

@@ -62,6 +62,9 @@ namespace Discord
/// <summary> Returns a collection of all messages this user has sent on this server that are still in cache. </summary>
public IEnumerable<Message> Messages => _client.Messages.Where(x => x.UserId == UserId && x.ServerId == ServerId);
/// <summary> Returns a collection of all channels this user is a member of. </summary>
public IEnumerable<Channel> Channels => _client.Channels.Where(x => x.ServerId == ServerId && x.UserIds.Contains(UserId));
internal Member(DiscordClient client, string userId, string serverId)
{
_client = client;