Skip to content

Commit

Permalink
Add versionadded strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gingershaped committed Dec 1, 2024
1 parent 0784ab6 commit acb4f47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
------
Expand Down
1 change: 1 addition & 0 deletions discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit acb4f47

Please sign in to comment.