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

Method handle_broker_event

components/scheduler/src/guild_handler.rs:309–321  ·  view source on GitHub ↗
(&mut self, evt: DiscordEvent)

Source from the content-addressed store, hash-verified

307 }
308
309 async fn handle_broker_event(&mut self, evt: DiscordEvent) {
310 crate::dispatch_metrics::record_stage("guild_handler_recv", "discord", evt.timestamp);
311
312 match &evt.event {
313 DiscordEventData::GuildCreate(_) => {}
314 DiscordEventData::GuildDelete(_) => {
315 unreachable!("this event should not be forwarded to the guild worker");
316 }
317 _ => {
318 self.send_discord_guild_event(evt).await;
319 }
320 }
321 }
322
323 /// Applies the side effects of the events produced by the session,
324 /// returning false when the guild handler should stop.

Callers 1

handle_guild_commandMethod · 0.80

Calls 2

record_stageFunction · 0.85

Tested by

no test coverage detected