Allow Message.channel to be a thread

This commit is contained in:
Rapptz
2021-05-02 23:28:30 -04:00
parent 51cc7622a6
commit ac95b8b85b
3 changed files with 11 additions and 6 deletions

View File

@@ -493,6 +493,10 @@ class Guild(Hashable):
def get_channel(self, channel_id):
"""Returns a channel with the given ID.
.. note::
This does *not* search for threads.
Parameters
-----------
channel_id: :class:`int`