1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
//#![warn(missing_docs)]
#![warn(missing_copy_implementations)]
#![warn(missing_debug_implementations)]
#![forbid(unsafe_code)]

pub mod client;
pub mod error;
pub(crate) mod gateway;
pub mod model;
pub mod prelude;
pub(crate) mod route;

use crate::route::Route;

const BASE_URL: &str = "https://discord.com/api";
const VERSION: &str = "v9";
const GATEWAY_VERSION: &str = "9";

fn request_url(route: Route) -> String {
    format!("{}/{}/{}", &BASE_URL, &VERSION, route)
}