diff options
| author | Rapptz <[email protected]> | 2021-08-23 23:46:50 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-08-23 23:46:50 -0400 |
| commit | 490bbffc935856f885edd9a2d1505ac228c38f72 (patch) | |
| tree | 46a2aa80b6ebbe1faddd3ddd8c338cce1e8eb613 /discord/integrations.py | |
| parent | Fix typing of move role position payload parameter (diff) | |
| download | discord.py-490bbffc935856f885edd9a2d1505ac228c38f72.tar.xz discord.py-490bbffc935856f885edd9a2d1505ac228c38f72.zip | |
Remove in-place edits and return fresh instances instead
Fixes #4098
Diffstat (limited to 'discord/integrations.py')
| -rw-r--r-- | discord/integrations.py | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/discord/integrations.py b/discord/integrations.py index fa1029bf..23d02930 100644 --- a/discord/integrations.py +++ b/discord/integrations.py @@ -262,17 +262,10 @@ class StreamIntegration(Integration): if enable_emoticons is not MISSING: payload['enable_emoticons'] = enable_emoticons + # This endpoint is undocumented. + # Unsure if it returns the data or not as a result await self._state.http.edit_integration(self.guild.id, self.id, **payload) - if expire_behaviour is not MISSING: - self.expire_behaviour = expire_behaviour - - if enable_emoticons is not MISSING: - self.enable_emoticons = enable_emoticons - - if expire_grace_period is not MISSING: - self.expire_grace_period = expire_grace_period - async def sync(self) -> None: """|coro| |