aboutsummaryrefslogtreecommitdiff
path: root/src/constants.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-04-09 10:44:43 -0700
committerZeyla Hellyer <[email protected]>2017-04-09 10:44:43 -0700
commitc74cc15f8969c8db68119d07a4f273a0d3fc44f4 (patch)
treea37a4989a4af4b6d78fe1d40a62a329ae336578c /src/constants.rs
parentRemove selfbot support (diff)
downloadserenity-c74cc15f8969c8db68119d07a4f273a0d3fc44f4.tar.xz
serenity-c74cc15f8969c8db68119d07a4f273a0d3fc44f4.zip
Remove support for group calls and guild sync
Calls and guild sync are essentially leftovers from selfbot support removal, the former moreso. Removes the following `model::event` structs: - CallCreateEvent - CallDeleteEvent - CallUpdateEvent - GuildSyncEvent which also removes the following `model::event::Event` variants: `client::gateway::Shard::sync_calls` has been removed. The following `client::Client` methods have been removed: - `on_call_create` - `on_call_delete` - `on_call_update` - `on_guild_sync` Removes the following items on `ext::cache::Cache`: ``` ext::cache::Cache::{ // fields calls, // methods get_call, update_with_call_create, update_with_call_delete, update_with_call_update, update_with_guild_sync, } ``` Voice structs and methods now take solely a `guild_id` instead of a `target`, due to the handling of 1-on-1 and group calls being removed. This continues off commit d9118c0.<Paste>
Diffstat (limited to 'src/constants.rs')
-rw-r--r--src/constants.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/constants.rs b/src/constants.rs
index 115263d..99327b7 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -70,8 +70,6 @@ pub enum OpCode {
InvalidSession,
Hello,
HeartbeatAck,
- SyncGuild,
- SyncCall,
}
impl OpCode {
@@ -89,8 +87,6 @@ impl OpCode {
9 => Some(OpCode::InvalidSession),
10 => Some(OpCode::Hello),
11 => Some(OpCode::HeartbeatAck),
- 12 => Some(OpCode::SyncGuild),
- 13 => Some(OpCode::SyncCall),
_ => None,
}
}
@@ -109,8 +105,6 @@ impl OpCode {
OpCode::InvalidSession => 9,
OpCode::Hello => 10,
OpCode::HeartbeatAck => 11,
- OpCode::SyncGuild => 12,
- OpCode::SyncCall => 13,
}
}
}