Browse Source

Document get_thread not fetching archived threads

pull/10109/head
mirnovov 3 years ago
committed by dolfies
parent
commit
18854c0124
  1. 5
      discord/channel.py
  2. 5
      discord/guild.py

5
discord/channel.py

@ -646,6 +646,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

5
discord/guild.py

@ -774,6 +774,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…
Cancel
Save