Skip to content

Commit a080d91

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

discord/role.py

Lines changed: 5 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+
Whether 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`]
@@ -288,10 +287,12 @@ def is_premium_subscriber(self) -> bool:
288287

289288
def is_integration(self) -> bool:
290289
"""Whether the role is managed by an integration.
290+
Alias for :attr:`Role.managed`.
291291
292-
.. versionadded:: 1.6
292+
..
293+
versionadded:: 1.6
293294
"""
294-
return self.tags is not None and self.tags.is_integration()
295+
return self.managed
295296

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

0 commit comments

Comments
 (0)