mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-21 08:17:47 +00:00
Document get_thread not fetching archived threads
This commit is contained in:
parent
1097e1d975
commit
5039b967a0
@ -673,6 +673,11 @@ class TextChannel(discord.abc.Messageable, discord.abc.GuildChannel, Hashable):
|
||||
def get_thread(self, thread_id: int, /) -> Optional[Thread]:
|
||||
"""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
|
||||
|
||||
Parameters
|
||||
|
@ -739,6 +739,11 @@ class Guild(Hashable):
|
||||
def get_thread(self, thread_id: int, /) -> Optional[Thread]:
|
||||
"""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
|
||||
|
||||
Parameters
|
||||
|
Loading…
x
Reference in New Issue
Block a user