Edit history

Earlier versions of `MUST_START_SESSION_BEFORE_SENDING` for bots upon sending messages to channels, newest first.

Current version | Edited by Rex
Changes
```Removed: ### Environment (optional)Removed: Removed: _No response_Removed: Removed: ### Logs or screenshots (optional)Removed: Removed: _No response_Removed: Removed: ### ChecksRemoved: Removed: - ☑ I searched for existing issues and didn't find a duplicate.Removed:
Show

`MUST_START_SESSION_BEFORE_SENDING` for bots upon sending messages to channels

Summary

When I send a message via cURL, I get the following answer:
{"code":"INVALID_FORM_BODY","message":"Invalid form body.","errors":[{"path":"content","message":"You must start a session before sending messages.","code":"MUST_START_SESSION_BEFORE_SENDING"}]}
I expect, that the message would be sent to the channel without using the websocket. Same functionality works for Discord API, but not for Fluxer.

Steps to reproduce

curl -X POST \
-H 'Authorization: Bot MY_BOT_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"content":"Test"}' \
https://api.fluxer.app/v1/channels/1473746665695588489/messages
Original by Rex
Show

`MUST_START_SESSION_BEFORE_SENDING` for bots upon sending messages to channels

Summary

When I send a message via cURL, I get the following answer:
{"code":"INVALID_FORM_BODY","message":"Invalid form body.","errors":[{"path":"content","message":"You must start a session before sending messages.","code":"MUST_START_SESSION_BEFORE_SENDING"}]}
I expect, that the message would be sent to the channel without using the websocket. Same functionality works for Discord API, but not for Fluxer.

Steps to reproduce

curl -X POST \
-H 'Authorization: Bot MY_BOT_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"content":"Test"}' \
https://api.fluxer.app/v1/channels/1473746665695588489/messages

Environment (optional)

No response

Logs or screenshots (optional)

No response

Checks

  • ☑ I searched for existing issues and didn't find a duplicate.