Skip to main content

diself/
lib.rs

1pub mod cache;
2pub mod client;
3pub mod error;
4pub mod gateway;
5pub mod http;
6pub mod model;
7
8pub use cache::{Cache, CacheConfig};
9pub use client::{
10    ChannelsManager, Client, ClientBuilder, CollectorHub, CollectorOptions, Context,
11    DispatchEvent, DispatchEventType, EventHandler, GuildsManager, MessageCollector,
12    ReactionCollectEvent, ReactionCollector, ReactionEventType, RelationshipsManager,
13    SearchThreadsParams, UsersManager,
14};
15pub use error::{CaptchaInfo, Error, Result};
16pub use http::HttpClient;
17pub use model::{
18    Channel, Message, PassiveChannelState, PassiveUpdateV1, ReadStateEntry, ReadySupplemental,
19    User,
20};
21
22/// Prelude module for easy imports
23///
24/// # Example
25/// ```
26/// use diself::prelude::*;
27/// ```
28pub mod prelude {
29    pub use crate::cache::{Cache, CacheConfig};
30    pub use crate::client::{
31        ChannelsManager, Client, ClientBuilder, CollectorHub, CollectorOptions, Context,
32        DispatchEvent, DispatchEventType, EventHandler, GuildsManager, MessageCollector,
33        ReactionCollectEvent, ReactionCollector, ReactionEventType, RelationshipsManager,
34        SearchThreadsParams, UsersManager,
35    };
36    pub use crate::error::{CaptchaInfo, Error, Result};
37    pub use crate::http::HttpClient;
38    pub use crate::model::{
39        Channel, Message, PassiveChannelState, PassiveUpdateV1, ReadStateEntry, ReadySupplemental,
40        User,
41    };
42    pub use async_trait::async_trait;
43}