4 releases
0.0.4 | Jun 7, 2023 |
---|---|
0.0.3 | Jun 5, 2023 |
0.0.2 | Jun 4, 2023 |
0.0.1 | May 31, 2023 |
#7 in #intent
Used in adiscord
7KB
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.