MCPcopy Create free account
hub / github.com/Botloader/botloader / emit_subscriptions

Method emit_subscriptions

components/webapi/src/routes/ws.rs:253–261  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

251 }
252
253 async fn emit_subscriptions(&mut self) -> WsResult {
254 let ids = self
255 .active_log_streams
256 .iter()
257 .map(|item| item.guild_id)
258 .collect::<Vec<_>>();
259
260 self.send_event(WsEvent::SubscriptionsUpdated(ids)).await
261 }
262
263 async fn check_guild_acces(&mut self, guild_id: Id<GuildMarker>) -> WsResult {
264 let session = match &self.state {

Callers 2

subscribe_logsMethod · 0.80
unsubscribe_logsMethod · 0.80

Calls 1

send_eventMethod · 0.45

Tested by

no test coverage detected