Skip to content

Commit

Permalink
📝 Better doc. of role tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Paillat-dev committed Oct 29, 2024
1 parent 8ed5ae5 commit 693d72b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions discord/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ class Role(Hashable):
operators on the role objects themselves.
managed: :class:`bool`
Indicates if the role is managed by the guild through some form of
integrations such as Twitch.
Indicates if the role is managed by the guild. This is true if :meth:`Role.is_integration`, :meth:`Role.is_premium_subscriber`, or :meth:`Role.is_bot_managed` is ``True``.
mentionable: :class:`bool`
Indicates if the role can be mentioned by users.
tags: Optional[:class:`RoleTags`]
Expand Down Expand Up @@ -287,7 +286,8 @@ def is_premium_subscriber(self) -> bool:
return self.tags is not None and self.tags.is_premium_subscriber()

def is_integration(self) -> bool:
"""Whether the role is managed by an integration.
"""Whether the role is managed by the guild through some form of
integrations such as Twitch.
.. versionadded:: 1.6
"""
Expand Down

0 comments on commit 693d72b

Please sign in to comment.