Browse Source

Update versionadded directives

pull/10109/head
dolfies 2 years ago
parent
commit
8ddf2a927f
  1. 2
      discord/channel.py
  2. 4
      docs/api.rst

2
discord/channel.py

@ -2087,7 +2087,7 @@ class CategoryChannel(discord.abc.GuildChannel, Hashable):
def forums(self) -> List[ForumChannel]:
"""List[:class:`ForumChannel`]: Returns the forum channels that are under this category.
.. versionadded:: 2.4
.. versionadded:: 2.1
"""
r = [c for c in self.guild.channels if c.category_id == self.id and isinstance(c, ForumChannel)]
r.sort(key=lambda c: (c.position, c.id))

4
docs/api.rst

@ -3100,13 +3100,13 @@ of :class:`enum.Enum`.
A request to monetize the server was created.
.. versionadded:: 2.4
.. versionadded:: 2.1
.. attribute:: creator_monetization_terms_accepted
The terms and conditions for creator monetization were accepted.
.. versionadded:: 2.4
.. versionadded:: 2.1
.. class:: AuditLogActionCategory

Loading…
Cancel
Save