`MUST_START_SESSION_BEFORE_SENDING` for bots upon sending messages to channels

(#402) Bug Confirmed api

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

5 comments

Sign in with Fluxer to comment and vote.
Comment by Rex
RexSystem 1 vote
Status changed from Fixed to Confirmed
Reopened because the team said they want to address this and it was only closed in a bulk cleanup.
Comment by @X30N1
RexSystem 1 vote originally by @X30N1 on GitHub
Not going to close this issue, but IMO this is just a intentionally different implementation to discord's API and is not a bug. As per https://docs.fluxer.app/
Fluxer’s API surface is intentionally similar to Discord’s, but it’s not Discord. You should expect some differences.
Comment by @Jiralite
RexSystem 1 vote originally by @Jiralite on GitHub
This is something we want to address!
Comment by @X30N1
RexSystem 1 vote originally by @X30N1 on GitHub
Fair enough, hopefully this message chain makes this more visible.
Comment by @jelle619
RexSystem 1 vote originally by @jelle619 on GitHub
I would really value being able to send out messages with plain POST requests as well. Hope it gets addressed!