From d83d9d0487c714f47d9af1baf5758596110e3dfc Mon Sep 17 00:00:00 2001 From: RogueException Date: Sun, 18 Oct 2015 09:33:59 -0300 Subject: [PATCH] Dont serialize Channel.Members or Users --- src/Discord.Net/Models/Channel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Discord.Net/Models/Channel.cs b/src/Discord.Net/Models/Channel.cs index b7df1a2df..1a4c8bf77 100644 --- a/src/Discord.Net/Models/Channel.cs +++ b/src/Discord.Net/Models/Channel.cs @@ -73,8 +73,10 @@ namespace Discord } private string[] _userIds; /// Returns a collection of all users with read access to this channel. + [JsonIgnore] public IEnumerable Members => UserIds.Select(x => _client.Members[x, ServerId]); /// Returns a collection of all users with read access to this channel. + [JsonIgnore] public IEnumerable Users => UserIds.Select(x => _client.Users[x]); /// Returns a collection of the ids of all messages the client has seen posted in this channel. This collection does not guarantee any ordering.