diff options
| author | Rapptz <[email protected]> | 2021-06-29 21:46:19 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-29 21:46:19 -0400 |
| commit | 53ef89c29fb212cf285fdf2d272004cea76bdc04 (patch) | |
| tree | 2eb00ec6479b2f3d212bb98421c94bfe634f640d | |
| parent | Rework StreamIntegration.edit to not rely on state (diff) | |
| download | discord.py-53ef89c29fb212cf285fdf2d272004cea76bdc04.tar.xz discord.py-53ef89c29fb212cf285fdf2d272004cea76bdc04.zip | |
Use a property for StreamIntegration.expire_behavior alias
| -rw-r--r-- | discord/integrations.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/discord/integrations.py b/discord/integrations.py index 55d2b99e..e2d6e116 100644 --- a/discord/integrations.py +++ b/discord/integrations.py @@ -181,7 +181,6 @@ class StreamIntegration(Integration): __slots__ = ( 'revoked', 'expire_behaviour', - 'expire_behavior', 'expire_grace_period', 'synced_at', '_role_id', @@ -202,6 +201,11 @@ class StreamIntegration(Integration): 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 def role(self) -> Optional[Role]: """Optional[:class:`Role`] The role which the integration uses for subscribers.""" return self.guild.get_role(self._role_id) # type: ignore |