Skip to main content

discord_user/
lib.rs

1//! Discord Control - A Discord self-bot client library for Rust
2//!
3//! This library provides functionality to interact with Discord as a user
4//! account, including WebSocket gateway connection, message operations, and
5//! event handling.
6//!
7//! # Warning
8//! This library implements Discord self-botting which violates Discord's Terms
9//! of Service. Use at your own risk.
10
11#[cfg(feature = "builder")]
12pub mod builder;
13#[cfg(feature = "cache")]
14pub mod cache;
15#[cfg(feature = "cache")]
16pub mod cache_http;
17pub mod client;
18#[cfg(feature = "collector")]
19pub mod collector;
20pub mod components;
21pub mod content_safe;
22pub mod discord_user;
23pub mod error;
24pub mod events;
25pub mod fmt;
26#[cfg(feature = "framework")]
27pub mod framework;
28pub mod gateway;
29pub mod json;
30pub mod mention;
31pub mod message_builder;
32pub mod modal;
33pub mod operations;
34pub mod permissions;
35pub mod proto;
36pub mod route;
37pub mod typed_events;
38pub mod typemap;
39pub mod types;
40pub mod utils;
41pub mod validate;
42
43pub use context::DiscordContext;
44pub use discord_user::{ConnectionInfo, DiscordUser, DiscordUserBuilder};
45pub use error::{DiscordError, Result};
46pub use events::DispatchEvent;
47pub use message_builder::{EmbedBuilder, MessageBuilder};
48pub use typed_events::TypedEvent;
49pub use types::*;
50
51pub mod context;
52
53#[cfg(feature = "cli")]
54pub mod cli;