Whenever a channel is created while the bot is on, you get an error #11

Closed
opened 2026-02-15 23:16:13 -05:00 by yindo · 0 comments
Owner

Originally created by @4444dogs on GitHub (Jun 30, 2022).

Describe the bug
Whenever the bot is running, if somebody makes a text channel you get an error.

To Reproduce

  1. Run your bot
  2. Create a text channel in a Revolt server with your bot in it
Task exception was never retrieved
future: <Task finished name='Task-12' coro=<WebsocketHandler.handle_event() done, defined at C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python310\lib\site-packages\revolt\websocket.py:82> exception=TypeError("Server._update() got an unexpected keyword argument 'channels'")>
Traceback (most recent call last):
  File "C:\Users\l%USERNAME%\AppData\Local\Programs\Python\Python310\lib\site-packages\revolt\websocket.py", line 94, in handle_event
    await func(payload)
  File "C:\Users\l%USERNAME%\AppData\Local\Programs\Python\Python310\lib\site-packages\revolt\websocket.py", line 201, in handle_serverupdate
    server._update(**payload["data"])
TypeError: Server._update() got an unexpected keyword argument 'channels'

Expected behavior
The bot shouldn't send an error message just because somebody created a text channel.

Library version

Name: revolt.py
Version: 0.1.8
Summary: Python wrapper for the revolt.chat API
Home-page: https://github.com/revoltchat/revolt.py
Author: Zomatee
Author-email: me@zomatree.live
License: MIT
Location: c:\users\lee\appdata\local\programs\python\python310\lib\site-packages
Requires: aenum, aiohttp, typing-extensions, ulid-py
Required-by:
Originally created by @4444dogs on GitHub (Jun 30, 2022). **Describe the bug** Whenever the bot is running, if somebody makes a text channel you get an error. **To Reproduce** 1. Run your bot 2. Create a text channel in a Revolt server with your bot in it ``` Task exception was never retrieved future: <Task finished name='Task-12' coro=<WebsocketHandler.handle_event() done, defined at C:\Users\%USERNAME%\AppData\Local\Programs\Python\Python310\lib\site-packages\revolt\websocket.py:82> exception=TypeError("Server._update() got an unexpected keyword argument 'channels'")> Traceback (most recent call last): File "C:\Users\l%USERNAME%\AppData\Local\Programs\Python\Python310\lib\site-packages\revolt\websocket.py", line 94, in handle_event await func(payload) File "C:\Users\l%USERNAME%\AppData\Local\Programs\Python\Python310\lib\site-packages\revolt\websocket.py", line 201, in handle_serverupdate server._update(**payload["data"]) TypeError: Server._update() got an unexpected keyword argument 'channels' ``` **Expected behavior** The bot shouldn't send an error message just because somebody created a text channel. **Library version** ``` Name: revolt.py Version: 0.1.8 Summary: Python wrapper for the revolt.chat API Home-page: https://github.com/revoltchat/revolt.py Author: Zomatee Author-email: me@zomatree.live License: MIT Location: c:\users\lee\appdata\local\programs\python\python310\lib\site-packages Requires: aenum, aiohttp, typing-extensions, ulid-py Required-by: ```
yindo added the bug label 2026-02-15 23:16:13 -05:00
yindo closed this issue 2026-02-15 23:16:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#11