| Crates.io | adiscord-intents |
| lib.rs | adiscord-intents |
| version | 0.0.4 |
| created_at | 2023-05-31 14:53:57.033027+00 |
| updated_at | 2023-06-07 21:00:05.693777+00 |
| description | Calculate the number of intents from a list of enums |
| homepage | |
| repository | https://github.com/MoskalykA/adiscord |
| max_upload_size | |
| id | 878870 |
| size | 6,370 |
Calculate the number of intents from a list of enums
Use the package manager cargo to install adiscord.
cargo add adiscord-intents
use adiscord_intents::{Intent, generate_intent_number};
fn main() {
let intents = vec![Intent::GuildInvites, Intent::GuildMembers];
println!("Intent number -> {}", generate_intent_number(intents));
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.