diff options
| author | Rapptz <[email protected]> | 2021-05-29 01:07:13 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-05-29 01:09:07 -0400 |
| commit | 794327cdb43096244d67e804d1181edbcb9d9c92 (patch) | |
| tree | b40ae3e9788c1018daa42b6c0ad7c4305ef8496e /discord/guild.py | |
| parent | Fix some type errors in StreamIntegration.edit (diff) | |
| download | discord.py-794327cdb43096244d67e804d1181edbcb9d9c92.tar.xz discord.py-794327cdb43096244d67e804d1181edbcb9d9c92.zip | |
Fix type errors with required keys in the integration types
Diffstat (limited to 'discord/guild.py')
| -rw-r--r-- | discord/guild.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/guild.py b/discord/guild.py index c2f8f0de..a08aafb5 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -45,7 +45,7 @@ from .iterators import AuditLogIterator, MemberIterator from .widget import Widget from .asset import Asset from .flags import SystemChannelFlags -from .integrations import BotIntegration, StreamIntegration, _integration_factory +from .integrations import Integration, _integration_factory __all__ = ( 'Guild', @@ -1805,7 +1805,7 @@ class Guild(Hashable): data = await self._state.http.get_all_integrations(self.id) def convert(d): - factory, itype = _integration_factory(d['type']) + factory, _ = _integration_factory(d['type']) if factory is None: raise InvalidData('Unknown integration type {type!r} for integration ID {id}'.format_map(d)) return factory(guild=self, data=d) |