User._update() does not update display_name changes (crash) #20

Closed
opened 2026-02-15 23:16:15 -05:00 by yindo · 1 comment
Owner

Originally created by @MysticMia on GitHub (Jun 19, 2023).

Describe the bug
I believe this error comes from a client event of someone hanging their username, and the bot trying to edit data in its cache.

Traceback (most recent call last):
  File "/home/container/.local/lib/python3.11/site-packages/revolt/websocket.py", line 113, in handle_event
    await func(payload)
  File "/home/container/.local/lib/python3.11/site-packages/revolt/websocket.py", line 378, in handle_userupdate
    user._update(**payload["data"])
TypeError: User._update() got an unexpected keyword argument 'display_name'

To Reproduce
Probably happens on any client..

Expected behavior
Expected no error (and the cache to be updated accordingly)

Library version
0.1.11

Originally created by @MysticMia on GitHub (Jun 19, 2023). **Describe the bug** I believe this error comes from a client event of someone hanging their username, and the bot trying to edit data in its cache. ``` Traceback (most recent call last): File "/home/container/.local/lib/python3.11/site-packages/revolt/websocket.py", line 113, in handle_event await func(payload) File "/home/container/.local/lib/python3.11/site-packages/revolt/websocket.py", line 378, in handle_userupdate user._update(**payload["data"]) TypeError: User._update() got an unexpected keyword argument 'display_name' ``` **To Reproduce** Probably happens on any client.. **Expected behavior** Expected no error (and the cache to be updated accordingly) **Library version** 0.1.11
yindo added the unconfirmed bug label 2026-02-15 23:16:15 -05:00
yindo closed this issue 2026-02-15 23:16:15 -05:00
Author
Owner

@MysticMia commented on GitHub (Jun 19, 2023):

Same seems to happen for username

@MysticMia commented on GitHub (Jun 19, 2023): Same seems to happen for `username`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#20