Crate rustycord

Source
Expand description

§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

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(())
}

Modules§

application
bot
client
embeds
event_handler
gateway
handlers
http
logger
message
models
prefix
response