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
//! # rustycord - Discord Bot Library for Rust
//!
//! ⚠️ **DEVELOPMENT WARNING**: This library is in heavy development and is **NOT ready for production use**.
//!
//! - APIs change frequently without notice
//! - Features are incomplete and experimental
//! - Breaking changes occur regularly
//! - Use only for development and testing
//! - **Do not use for production bots**
//!
//! Wait for the stable 1.0 release before using in production.
//!
//! ## Current Status
//!
//! ✅ Basic bot functionality working
//! ✅ Message handling implemented
//! ✅ Prefix command system functional
//! ❌ Slash commands not implemented
//! ❌ Voice support not available
//! ❌ API stability not guaranteed
//!
//! ## Example Usage
//!
//! ```rust,no_run
//! use rustycord::{bot::BotBase, gateway::intents};
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let token = std::env::var("DISCORD_TOKEN")?;
//! let intents = intents::GUILDS | intents::GUILD_MESSAGES | intents::MESSAGE_CONTENT;
//!
//! let mut bot = BotBase::new(Some(intents)).await;
//! bot.login(token).await;
//! bot.connect(Some(intents), Some(true)).await;
//!
//! Ok(())
//! }
//! ```
// extern crate log;
// mod wsocks;