Fallback to user id instead of just unknown
This commit is contained in:
parent
204ed76bed
commit
e62458ee5e
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -36,7 +36,7 @@ print("All pages loaded, generating user mappings now.")
|
|||
del pages
|
||||
user_mappings = {}
|
||||
for user in users_list:
|
||||
user_mappings[f"<@{user['id']}>"] = "@"+user["profile"]["display_name"] if user["profile"]["display_name"] else "@missing_display_name"
|
||||
user_mappings[f"<@{user['id']}>"] = f'<@{user["profile"]["display_name"]}>' if user["profile"]["display_name"] else "<@{user['id']}>"
|
||||
|
||||
print("User mappings loaded. User count:", len(user_mappings))
|
||||
|
||||
|
|
Loading…
Reference in a new issue