diff --git a/discord/client.py b/discord/client.py index f1b18694a864..76c4ff4f59d1 100644 --- a/discord/client.py +++ b/discord/client.py @@ -2359,8 +2359,10 @@ async def fetch_guild(self, guild_id: int, /, *, with_counts: bool = True) -> Gu async def fetch_guild_preview(self, guild_id: int) -> GuildPreview: """|coro| - Retrieves a preview of a :class:`Guild` from an ID. If the guild is discoverable, you don't have to be - a member of it. + Retrieves a preview of a :class:`Guild` from an ID. If the guild is discoverable, + you don't have to be a member of it. + + .. versionadded:: 2.5 Raises ------ diff --git a/discord/guild.py b/discord/guild.py index e94aaa808ae1..991268b68d37 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -165,6 +165,7 @@ class _GuildLimit(NamedTuple): class GuildPreview(Hashable): """Represents a preview of a Discord guild. + .. versionadded:: 2.5 .. container:: operations .. describe:: x == y