diff options
| author | Austin Hellyer <[email protected]> | 2016-09-19 09:00:03 -0700 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-10-18 11:14:27 -0700 |
| commit | 8fc8c81403c3daa187ba96a7d488a64db21463bf (patch) | |
| tree | 81bc4890c28b08ce806f69084617066bce863c2d /src/constants.rs | |
| download | serenity-8fc8c81403c3daa187ba96a7d488a64db21463bf.tar.xz serenity-8fc8c81403c3daa187ba96a7d488a64db21463bf.zip | |
Initial commit
Diffstat (limited to 'src/constants.rs')
| -rw-r--r-- | src/constants.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/constants.rs b/src/constants.rs new file mode 100644 index 0000000..8140fca --- /dev/null +++ b/src/constants.rs @@ -0,0 +1,9 @@ +/// The base URI for the API. +pub const API_BASE: &'static str = "https://discordapp.com/api/v6"; +/// The gateway version used by the library. The gateway URI is retrieved via +/// the REST API. +pub const GATEWAY_VERSION: u8 = 6; +/// The [UserAgent] sent along with every request. +/// +/// [UserAgent]: ../hyper/header/struct.UserAgent.html +pub const USER_AGENT: &'static str = concat!("DiscordBot (https://github.com/zeyla/serenity, ", env!("CARGO_PKG_VERSION"), ")"); |