diff options
Diffstat (limited to 'discord/client.py')
| -rw-r--r-- | discord/client.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/discord/client.py b/discord/client.py index e0d7900b..2f70082b 100644 --- a/discord/client.py +++ b/discord/client.py @@ -228,6 +228,14 @@ class Client: return self._connection.emojis @property + def cached_messages(self): + """Sequence[:class:`~discord.Message`]: Read-only list of messages the connected client has cached. + + .. versionadded:: 1.1.0 + """ + return utils.SequenceProxy(self._connection._messages) + + @property def private_channels(self): """List[:class:`abc.PrivateChannel`]: The private channels that the connected client is participating on. |