#discord #shell #cli #tool #library #api-bindings

bin+lib discord_api

Interact with the Discord API from your shell

2 releases

0.2.3 May 17, 2020
0.2.2 May 16, 2020

#1147 in Asynchronous

MIT license

165KB
202 lines

Discord

status Crates.io GitHub

Library and binary providing interaction with features of the 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

use discord_api::get_invite;

let invite = get_invite("python").await?;

println!("Invite for: {}", invite.guild?.name);

Fetch guild features from invite

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

invite features

Welcome Screen Fetching

welcome screen

Usage

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

Dependencies

~9–21MB
~307K SLoC