mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 20:28:38 +00:00
Use a property for StreamIntegration.expire_behavior alias
This commit is contained in:
parent
c6a69062a8
commit
53ef89c29f
@ -181,7 +181,6 @@ class StreamIntegration(Integration):
|
|||||||
__slots__ = (
|
__slots__ = (
|
||||||
'revoked',
|
'revoked',
|
||||||
'expire_behaviour',
|
'expire_behaviour',
|
||||||
'expire_behavior',
|
|
||||||
'expire_grace_period',
|
'expire_grace_period',
|
||||||
'synced_at',
|
'synced_at',
|
||||||
'_role_id',
|
'_role_id',
|
||||||
@ -201,6 +200,11 @@ class StreamIntegration(Integration):
|
|||||||
self.enable_emoticons: bool = data['enable_emoticons']
|
self.enable_emoticons: bool = data['enable_emoticons']
|
||||||
self.subscriber_count: int = data['subscriber_count']
|
self.subscriber_count: int = data['subscriber_count']
|
||||||
|
|
||||||
|
@property
|
||||||
|
def expire_behavior(self) -> ExpireBehaviour:
|
||||||
|
""":class:`ExpireBehaviour`: An alias for :attr:`expire_behaviour`."""
|
||||||
|
return self.expire_behaviour
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def role(self) -> Optional[Role]:
|
def role(self) -> Optional[Role]:
|
||||||
"""Optional[:class:`Role`] The role which the integration uses for subscribers."""
|
"""Optional[:class:`Role`] The role which the integration uses for subscribers."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user