Channel.server raises IndexError #16

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

Originally created by @martinbndr on GitHub (May 19, 2023).

Describe the bug
Using the on_message event for direct messages raises IndexError because in a direct message is no server/server_id available

To Reproduce
Create a command or trigger in the on_message event that response sth in chat.

Expected behavior
Bot should respond in direct message

Screenshots

Library version

Name: revolt.py
Version: 0.1.10
Summary: Python wrapper for the revolt.chat API
Home-page: 
Author: 
Author-email: Zomatree <me@zomatree.live>
License: 
Location: c:\users\ma\documents\pythonbots\revolt\delivery\env\lib\site-packages
Requires: aenum, aiohttp, typing-extensions, ulid-py
Required-by:

Additional context

  • I will fix this
Originally created by @martinbndr on GitHub (May 19, 2023). **Describe the bug** Using the on_message event for direct messages raises IndexError because in a direct message is no server/server_id available **To Reproduce** Create a command or trigger in the on_message event that response sth in chat. **Expected behavior** Bot should respond in direct message **Screenshots** - **Library version** ``` Name: revolt.py Version: 0.1.10 Summary: Python wrapper for the revolt.chat API Home-page: Author: Author-email: Zomatree <me@zomatree.live> License: Location: c:\users\ma\documents\pythonbots\revolt\delivery\env\lib\site-packages Requires: aenum, aiohttp, typing-extensions, ulid-py Required-by: ``` **Additional context** - I will fix this
yindo added the unconfirmed bug label 2026-02-15 23:16:14 -05:00
yindo closed this issue 2026-02-15 23:16:14 -05:00
Author
Owner

@martinbndr commented on GitHub (May 19, 2023):

image

@martinbndr commented on GitHub (May 19, 2023): ![image](https://github.com/revoltchat/revolt.py/assets/55140357/f089e241-e0bd-44c8-9921-496aeafaf8d2)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/python-client-sdk#16