add read-only cached_messages property to Client

For those of us who want access to this sweet trove of zero hop messages
This commit is contained in:
khazhyk
2019-04-17 22:41:59 -04:00
committed by Rapptz
parent 296d4bf580
commit b1fae0861a
3 changed files with 39 additions and 2 deletions
+4 -2
View File
@@ -206,8 +206,6 @@ A list of these changes is enumerated below.
+---------------------------------------+------------------------------------------------------------------------------+
| ``Client.wait_until_login`` | Removed |
+---------------------------------------+------------------------------------------------------------------------------+
| ``Client.messages`` | Removed |
+---------------------------------------+------------------------------------------------------------------------------+
| ``Client.wait_until_ready`` | No change |
+---------------------------------------+------------------------------------------------------------------------------+
@@ -330,6 +328,10 @@ They will be enumerated here.
- Use :attr:`Client.emojis` instead.
` ``Client.messages``
- Use read-only :attr:`Client.cached_messages` instead.
- ``Client.wait_for_message`` and ``Client.wait_for_reaction`` are gone.
- Use :meth:`Client.wait_for` instead.