diff --git a/discord/channel.py b/discord/channel.py index 488fb24bc..ac3a61913 100644 --- a/discord/channel.py +++ b/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 diff --git a/discord/guild.py b/discord/guild.py index 77a2148e5..533bff67c 100644 --- a/discord/guild.py +++ b/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