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
#![warn(missing_docs)]
#[macro_use]
mod macros;
#[allow(dead_code)]
const BASE_URL: &str = "https://discord.com/api/v9";
#[cfg(feature = "types")]
pub mod types;
#[cfg(feature = "security")]
pub mod security;
#[cfg(feature = "handler")]
pub mod handler;
#[cfg(feature = "handler")]
pub use actix;
#[cfg(feature = "handler")]
pub use attributes::*;
#[cfg(all(test, not(feature = "handler")))]
compile_error!(
"cannot run tests without the 'handler' feature enabled (run with --features handler)"
);
#[cfg(all(test, feature = "handler"))]
mod tests;