mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-04 08:56:19 +00:00
Document get_thread not fetching archived threads
This commit is contained in:
@ -673,6 +673,11 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
|||||||
def get_thread(self, thread_id: int, /) -> Optional[Thread]:
|
def get_thread(self, thread_id: int, /) -> Optional[Thread]:
|
||||||
"""Returns a thread with the given ID.
|
"""Returns a thread with the given ID.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This does not always retrieve archived threads, as they are not retained in the internal
|
||||||
|
cache. Use :func:`Guild.fetch_channel` instead.
|
||||||
|
|
||||||
.. versionadded:: 2.0
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
@ -739,6 +739,11 @@ class Guild(Hashable):
|
|||||||
def get_thread(self, thread_id: int, /) -> Optional[Thread]:
|
def get_thread(self, thread_id: int, /) -> Optional[Thread]:
|
||||||
"""Returns a thread with the given ID.
|
"""Returns a thread with the given ID.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
This does not always retrieve archived threads, as they are not retained in the internal
|
||||||
|
cache. Use :func:`fetch_channel` instead.
|
||||||
|
|
||||||
.. versionadded:: 2.0
|
.. versionadded:: 2.0
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
|
Reference in New Issue
Block a user