From 3dd632cf573faa8124d66b6c678ba62429b62357 Mon Sep 17 00:00:00 2001 From: Wok Date: Tue, 10 Dec 2024 10:47:15 +0100 Subject: [PATCH] Fix bug: AttributeError: DummyMember object has no attribute name --- internal/utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/utils.py b/internal/utils.py index c39552320..2ab6bd1a9 100644 --- a/internal/utils.py +++ b/internal/utils.py @@ -230,10 +230,10 @@ async def create_member_file(member: Member, *, save_to_disk: bool = True) -> di profile_summary = { "id": member.id, - "name": clean_string(member.name), - "nick": clean_string(member.nick), - "display_name": clean_string(member.display_name), - "global_name": clean_string(member.global_name), + "name": clean_string(profile.name), + "nick": clean_string(profile.nick), + "display_name": clean_string(profile.display_name), + "global_name": clean_string(profile.global_name), "pronouns": profile.metadata.pronouns, "guild_pronouns": profile.guild_metadata.pronouns, "bio": clean_string(profile.bio),