aboutsummaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-13 19:28:13 -0800
committerAustin Hellyer <[email protected]>2016-11-14 18:32:10 -0800
commit7d22fb2a9c70e5e517b359875a0157f72e352e43 (patch)
treeca3bcb3a76f68960563d3c38d45e21f493ce32f8 /src/constants.rs
parentAdd internal module (diff)
downloadserenity-7d22fb2a9c70e5e517b359875a0157f72e352e43.tar.xz
serenity-7d22fb2a9c70e5e517b359875a0157f72e352e43.zip
Add voice connection support
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 69d49ae..68f6524 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -8,7 +8,7 @@ pub const MESSAGE_CODE_LIMIT: u16 = 2000;
/// 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"), ")");
+pub const USER_AGENT: &'static str = concat!("DiscordBot (https://github.com/zeyla/serenity.rs, ", env!("CARGO_PKG_VERSION"), ")");
#[allow(dead_code)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
@@ -136,9 +136,10 @@ map_nums! { OpCode;
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum VoiceOpCode {
Identify,
- SelectProtocol,
- Hello,
Heartbeat,
+ Hello,
+ KeepAlive,
+ SelectProtocol,
SessionDescription,
Speaking,
}
@@ -147,7 +148,8 @@ map_nums! { VoiceOpCode;
Identify 0,
SelectProtocol 1,
Hello 2,
- Heartbeat 3,
+ KeepAlive 3,
SessionDescription 4,
Speaking 5,
+ Heartbeat 8,
}