From 3bd0c2120c1d05fe49fd9a873b0b0e4aedd43066 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Tue, 4 Jul 2017 20:01:27 -0400 Subject: Implement a LRU cache for private channels. Another fix related to the discord issue[1]. [1]: https://github.com/hammerandchisel/discord-api-docs/issues/184 --- discord/client.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'discord/client.py') diff --git a/discord/client.py b/discord/client.py index 6304fb4e..2c5ed69c 100644 --- a/discord/client.py +++ b/discord/client.py @@ -179,7 +179,13 @@ class Client: @property def private_channels(self): - """List[:class:`abc.PrivateChannel`]: The private channels that the connected client is participating on.""" + """List[:class:`abc.PrivateChannel`]: The private channels that the connected client is participating on. + + .. note:: + + This returns only up to 128 most recent private channels due to an internal working + on how Discord deals with private channels. + """ return self._connection.private_channels @property -- cgit v1.2.3