aboutsummaryrefslogtreecommitdiff
path: root/src/client/gateway/shard.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/gateway/shard.rs')
-rw-r--r--src/client/gateway/shard.rs18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/client/gateway/shard.rs b/src/client/gateway/shard.rs
index f42c52a..627ba52 100644
--- a/src/client/gateway/shard.rs
+++ b/src/client/gateway/shard.rs
@@ -18,7 +18,7 @@ use ::constants::OpCode;
use ::internal::prelude::*;
use ::internal::ws_impl::{ReceiverExt, SenderExt};
use ::model::event::{Event, GatewayEvent, ReadyEvent};
-use ::model::{ChannelId, Game, GuildId, OnlineStatus};
+use ::model::{Game, GuildId, OnlineStatus};
#[cfg(feature="cache")]
use ::client::CACHE;
@@ -483,22 +483,6 @@ impl Shard {
Ok(())
}
- /// Syncs a number of [`Call`]s, given by their associated channel Ids. This
- /// will allow the current user to know what calls are currently occurring,
- /// as otherwise events will not be received.
- pub fn sync_calls(&self, channels: &[ChannelId]) {
- for &channel in channels {
- let msg = ObjectBuilder::new()
- .insert("op", OpCode::SyncCall.num())
- .insert_object("d", |obj| obj
- .insert("channel_id", channel.0)
- )
- .build();
-
- let _ = self.keepalive_channel.send(GatewayStatus::SendMessage(msg));
- }
- }
-
/// Requests that one or multiple [`Guild`]s be synced.
///
/// This will ask Discord to start sending member chunks for large guilds