Crates.io | discord_api |
lib.rs | discord_api |
version | 0.2.3 |
source | src |
created_at | 2020-05-16 22:13:55.318042 |
updated_at | 2020-05-17 00:25:19.929384 |
description | Interact with the Discord API from your shell |
homepage | |
repository | https://github.com/jos-b/discord_api |
max_upload_size | |
id | 242504 |
size | 206,544 |
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
.
use discord_api::get_invite;
let invite = get_invite("python").await?;
println!("Invite for: {}", invite.guild?.name);
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.
cargo build