discord-rs
discord-rs copied to clipboard
Use ETF rather than JSON
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.
I'm working on this using the alternate crate. I've talked with zeyla and he is ok with me doing it.