user_info not user goddamn it

This commit is contained in:
Amber 2025-06-13 23:50:56 +01:00
parent 073fe764e2
commit 0204381ceb
No known key found for this signature in database
GPG key ID: 81E4B6CCB9561611

View file

@ -55,7 +55,8 @@ async def on_message(event: Dict[str, Any], client: AsyncWebClient):
if user_info:
profile_pic = user_info["user"]["profile"].get("image_512", "")
display_name = (
user_info["user"]["profile"]["display_name"] or user["user"]["real_name"]
user_info["user"]["profile"]["display_name"]
or user_info["user"]["real_name"]
)
ticket = await client.chat_postMessage(