https://github.com/jb3/discord_api
Discord CLI
https://github.com/jb3/discord_api
bindings cli discord discord-api library rust rust-lang
Last synced: 4 months ago
JSON representation
Discord CLI
- Host: GitHub
- URL: https://github.com/jb3/discord_api
- Owner: jb3
- License: mit
- Created: 2020-05-16T01:49:44.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-24T23:37:22.000Z (about 3 years ago)
- Last Synced: 2025-11-22T06:13:29.879Z (7 months ago)
- Topics: bindings, cli, discord, discord-api, library, rust, rust-lang
- Language: Rust
- Size: 976 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Discord



Library and binary providing interaction with features of the Discord API.
- [Documentation](https://docs.rs/discord_api/)
- [Crates.io](https://crates.io/crates/discord_api)
To use this library head to the crates.io link above and copy the snippet to enter into your `Cargo.toml`.
## Examples
### Fetch guild name from invite
```rust
use discord_api::get_invite;
let invite = get_invite("python").await?;
println!("Invite for: {}", invite.guild?.name);
```
### Fetch guild features from invite
```rust
use discord_api::get_invite;
let invite = get_invite("python").await?;
let features = invite.guild?.features;
// do something with features!
```
More examples can be found in the command line utility which maintains feature parity with the library.
## Command line utility
### Feature Fetching

### Welcome Screen Fetching

## Usage
1. Clone the repository
2. Build with `cargo build`
3. Profit! Run the binary generated to see all available options