diff options
| author | Rapptz <[email protected]> | 2021-06-28 23:51:56 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-28 23:51:56 -0400 |
| commit | a2b10a08b9f5eb31b184767a183d3662dc16ad3f (patch) | |
| tree | 9bb436b5006b9046758325a425f04883c8c08af8 /discord/abc.py | |
| parent | Type and format abc.py (diff) | |
| download | discord.py-a2b10a08b9f5eb31b184767a183d3662dc16ad3f.tar.xz discord.py-a2b10a08b9f5eb31b184767a183d3662dc16ad3f.zip | |
Fix KeyError due to refactoring mistake in Overwrite handling
Diffstat (limited to 'discord/abc.py')
| -rw-r--r-- | discord/abc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/abc.py b/discord/abc.py index df43dae5..92a66701 100644 --- a/discord/abc.py +++ b/discord/abc.py @@ -399,7 +399,7 @@ class GuildChannel: overwrite = _Overwrites(overridden) self._overwrites.append(overwrite) - if overridden['type'] == _Overwrites.MEMBER: + if overwrite.type == _Overwrites.MEMBER: continue if overwrite.id == everyone_id: |