Browse Source

Fix issue with empty overwrites

Fixes #5756.
pull/5763/head
parafoxia 5 years ago
committed by GitHub
parent
commit
1f4f010e51
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      discord/abc.py

2
discord/abc.py

@ -274,7 +274,7 @@ class GuildChannel:
await self._move(position, parent_id=parent_id, lock_permissions=lock_permissions, reason=reason)
overwrites = options.get('overwrites', None)
if overwrites:
if overwrites is not None:
perms = []
for target, perm in overwrites.items():
if not isinstance(perm, PermissionOverwrite):

Loading…
Cancel
Save