Browse Source

Dont serialize Channel.Members or Users

tags/docs-0.9
RogueException 9 years ago
parent
commit
d83d9d0487
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/Discord.Net/Models/Channel.cs

+ 2
- 0
src/Discord.Net/Models/Channel.cs View File

@@ -73,8 +73,10 @@ namespace Discord
} }
private string[] _userIds; private string[] _userIds;
/// <summary> Returns a collection of all users with read access to this channel. </summary> /// <summary> Returns a collection of all users with read access to this channel. </summary>
[JsonIgnore]
public IEnumerable<Member> Members => UserIds.Select(x => _client.Members[x, ServerId]); public IEnumerable<Member> Members => UserIds.Select(x => _client.Members[x, ServerId]);
/// <summary> Returns a collection of all users with read access to this channel. </summary> /// <summary> Returns a collection of all users with read access to this channel. </summary>
[JsonIgnore]
public IEnumerable<User> Users => UserIds.Select(x => _client.Users[x]); public IEnumerable<User> Users => UserIds.Select(x => _client.Users[x]);


/// <summary> Returns a collection of the ids of all messages the client has seen posted in this channel. This collection does not guarantee any ordering. </summary> /// <summary> Returns a collection of the ids of all messages the client has seen posted in this channel. This collection does not guarantee any ordering. </summary>


Loading…
Cancel
Save