(&mut self, evt: DiscordEvent)
| 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. |
no test coverage detected