Skip to content

There is potential data loss here in the non-chunked #1732

@github-actions

Description

@github-actions

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

pycord//discord/abc.py

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions