mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Add Role.managed property.
This commit is contained in:
parent
c4f7664bd9
commit
ba978cc988
@ -198,6 +198,10 @@ class Role(object):
|
|||||||
.. attribute:: position
|
.. attribute:: position
|
||||||
|
|
||||||
The position of the role.
|
The position of the role.
|
||||||
|
.. attribute:: managed
|
||||||
|
|
||||||
|
A boolean indicating if the role is managed by the server through some form of integration
|
||||||
|
such as Twitch.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
@ -210,4 +214,5 @@ class Role(object):
|
|||||||
self.position = kwargs.get('position', -1)
|
self.position = kwargs.get('position', -1)
|
||||||
self.colour = Colour(kwargs.get('color', 0))
|
self.colour = Colour(kwargs.get('color', 0))
|
||||||
self.hoist = kwargs.get('hoist', False)
|
self.hoist = kwargs.get('hoist', False)
|
||||||
|
self.managed = kwargs.get('managed', False)
|
||||||
self.color = self.colour
|
self.color = self.colour
|
||||||
|
Loading…
x
Reference in New Issue
Block a user