Skip to content

Commit 694a5c0

Browse files
committed
🩹 Fix Role.is_integration()
1 parent 9a83a2a commit 694a5c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

discord/role.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ class Role(Hashable):
167167
operators on the role objects themselves.
168168
169169
managed: :class:`bool`
170-
Indicates if the role is managed by the guild through some form of
171-
integrations such as Twitch.
170+
Indicates if the role is managed by an integration.
172171
mentionable: :class:`bool`
173172
Indicates if the role can be mentioned by users.
174173
tags: Optional[:class:`RoleTags`]
@@ -287,11 +286,11 @@ def is_premium_subscriber(self) -> bool:
287286
return self.tags is not None and self.tags.is_premium_subscriber()
288287

289288
def is_integration(self) -> bool:
290-
"""Whether the role is managed by an integration.
289+
"""Whether the role is managed by an integration. Shorthand for :attr:`Role.managed`.
291290
292291
.. versionadded:: 1.6
293292
"""
294-
return self.tags is not None and self.tags.is_integration()
293+
return self.managed
295294

296295
def is_assignable(self) -> bool:
297296
"""Whether the role is able to be assigned or removed by the bot.

0 commit comments

Comments
 (0)