-
-
Notifications
You must be signed in to change notification settings - Fork 477
Open
Milestone
Description
Line: 904
Lines 901 to 911 in 6ab3292
elif len(permissions) > 0: | |
raise InvalidArgument("Cannot mix overwrite and keyword arguments.") | |
# TODO: wait for event | |
if overwrite is None: | |
await http.delete_channel_permissions(self.id, target.id, reason=reason) | |
elif isinstance(overwrite, PermissionOverwrite): | |
(allow, deny) = overwrite.pair() | |
await http.edit_channel_permissions( | |
self.id, target.id, allow.value, deny.value, perm_type, reason=reason |