SpaceManiac / discord-rs

Rust library for the Discord chat client API
MIT License
385 stars 94 forks source link

Use ETF rather than JSON #14

Open SpaceManiac opened 8 years ago

SpaceManiac commented 8 years ago

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.

SpaceManiac commented 7 years ago

Alternate possible crate.

AnonymousDapper commented 7 years ago

I'm working on this using the alternate crate. I've talked with zeyla and he is ok with me doing it.