1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # Discord Selfbot
//!
//! An unofficial Discord API library for user accounts (selfbots) in Rust.
//!
//! ## Warning
//! Using selfbots is against Discord's Terms of Service and can result in account termination.
//! Use this library at your own risk.
//!
//! ## Example
//! ```no_run
//! use discord_selfbot::{Client, ClientBuilder, EventHandler, User};
//! use std::sync::Arc;
//! use async_trait::async_trait;
//!
//! struct MyHandler;
//!
//! #[async_trait]
//! impl EventHandler for MyHandler {
//! async fn ready(&self, user: User) {
//! println!("{} is ready!", user.username);
//! }
//! }
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = ClientBuilder::new("YOUR_TOKEN")
//! .event_handler(Arc::new(MyHandler))
//! .build()
//! .await?;
//!
//! client.listen().await?;
//! Ok(())
//! }
//! ```
// Re-exports
pub use ;
pub use ;
pub use ;
pub use EventHandler;