adiscord-intents

Crates.ioadiscord-intents
lib.rsadiscord-intents
version0.0.4
sourcesrc
created_at2023-05-31 14:53:57.033027
updated_at2023-06-07 21:00:05.693777
descriptionCalculate the number of intents from a list of enums
homepage
repositoryhttps://github.com/MoskalykA/adiscord
max_upload_size
id878870
size6,370
MoskalykA (MoskalykA)

documentation

https://docs.rs/adiscord-intents

README

adiscord-intents

Calculate the number of intents from a list of enums

Installation

Use the package manager cargo to install adiscord.

cargo add adiscord-intents

Usage

use adiscord_intents::{Intent, generate_intent_number};

fn main() {
    let intents = vec![Intent::GuildInvites, Intent::GuildMembers];
    println!("Intent number -> {}", generate_intent_number(intents));
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Commit count: 134

cargo fmt