-
-
Notifications
You must be signed in to change notification settings - Fork 480
Open
Milestone
Description
case, i.e. target is None because get_member returned nothing.
This can be fixed with a slight breaking change to the return type,
i.e. adding discord.Object to the list of it
However, for now this is an acceptable compromise.
Line: 598
Lines 595 to 605 in 6ab3292
| elif ow.is_member(): | |
| target = self.guild.get_member(ow.id) | |
| # TODO: There is potential data loss here in the non-chunked | |
| # case, i.e. target is None because get_member returned nothing. | |
| # This can be fixed with a slight breaking change to the return type, | |
| # i.e. adding discord.Object to the list of it | |
| # However, for now this is an acceptable compromise. | |
| if target is not None: | |
| ret[target] = overwrite | |
| return ret |