Browse Source

Added Member.Channels

pull/6/head
RogueException 9 years ago
parent
commit
4fe97c4876
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/Discord.Net/Models/Member.cs

+ 3
- 0
src/Discord.Net/Models/Member.cs 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;


Loading…
Cancel
Save