Discord devs recommend use of the Erlang external term format for websocket (and REST?) communications. There's already a crate for ETF manipulation. The main changes would be adding &format=etf when connecting to the gateway and using ETF when decoding events and encoding actions.
Discord devs recommend use of the Erlang external term format for websocket (and REST?) communications. There's already a crate for ETF manipulation. The main changes would be adding
&format=etf
when connecting to the gateway and using ETF when decoding events and encoding actions.