1#![doc = include_str!("../README.md")]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![cfg_attr(not(feature = "gateway"), allow(dead_code, unused_imports))]
6
7mod cache_ops;
8mod client;
9pub mod collector;
10mod context;
11mod dispatch;
12mod error;
13pub mod event;
14pub mod ext;
15mod handler;
16#[cfg(feature = "http-interactions")]
17#[cfg_attr(docsrs, doc(cfg(feature = "http-interactions")))]
18pub mod http_interactions;
19pub mod manager;
20pub mod router;
21#[cfg(feature = "sharding")]
22#[cfg_attr(docsrs, doc(cfg(feature = "sharding")))]
23pub mod sharding;
24#[cfg(feature = "voice")]
25#[cfg_attr(docsrs, doc(cfg(feature = "voice")))]
26pub mod voice;
27pub mod webhook;
28
29pub use self::{
30 client::{Client, ClientBuilder, EventStream, HandlerMode},
31 context::Context,
32 error::Error,
33 event::Events,
34 handler::HandlerError,
35 webhook::WebhookClient,
36};
37
38#[cfg(feature = "gateway")]
39#[cfg_attr(docsrs, doc(cfg(feature = "gateway")))]
40pub use self::client::Shards;
41
42pub use djs_model as model;
44
45pub use djs_rest as rest;
47
48#[cfg(feature = "gateway")]
50#[cfg_attr(docsrs, doc(cfg(feature = "gateway")))]
51pub use djs_gateway as gateway;
52
53pub use djs_cache as cache;
56
57pub use djs_builders as builders;
59
60pub use djs_formatters as formatters;
63
64pub use djs_collection as collection;
67
68pub mod prelude {
74 pub use crate::{
75 Client, Context, Events, HandlerError,
76 ext::{ChannelExt, GuildExt, InteractionExt, MemberExt, MessageExt, UserExt, WebhookExt},
77 model::gateway::Intents,
78 };
79}
80
81#[cfg(doctest)]
84#[doc = include_str!("../../../README.md")]
85struct RepositoryReadme;