Disrust is a TUI discord client written entirely in glorious Rust. It works*.
The app is not fully feature complete. It's missing a lot of discord features, but the basics like navigating between servers, viewing channels, sending messages, etc are there.
I made it mostly to get better at Rust and because it's fun to work on a larger project for once.
But is this aligned with TOS ?
No.The use of this app is very much not kosher according to discord's TOS. I do not recommend using it seriously.
- You need to have Rust and cargo installed in order to compile the code
- Download the code in .zip or
git cloneit wherever you like - Go into that directory and run
cargo run - Paste your user token in when the program prompts for it. If you don't know what that is, look up a video on youtube or smthn
- Use arrows to navigate.
- Press
eto enter editing mode andescto leave it - Press
enterto open a server and view channels or send a message if you are in editing mode - Press
escto leave a server if not in editing mode - Press
qto quit the app
Thanks to Traumatism (https://github.com/Traumatism) and their project ToastCord (https://github.com/Traumatism/ToastCord) for guidance. This would have been a lot more confusing to code without them.
Thanks to 6cord (https://github.com/diamondburned/6cord) for the initial inspiration
I appreciate any and all roasting of the code so I can improve.
Feel free to modify this code however you like (As long as the license remains GPL 3.0) or use for reference on how to interact with discord's API and specifically gateway, it was a pain in the ass to setup. I wish I had a reference like this in Rust when I started.
The API in general is pretty neat btw. I recommend messing with it or maybe starting a project with it.