From f2cd49662f74deb894518d5169fae533454bd6a6 Mon Sep 17 00:00:00 2001 From: Ashelyn Rose Date: Sat, 5 Oct 2024 20:05:36 -0600 Subject: System manager now knows user_id of each bot --- src/system/bot/gateway.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/system/bot/gateway.rs') diff --git a/src/system/bot/gateway.rs b/src/system/bot/gateway.rs index 5a343d1..bfe4603 100644 --- a/src/system/bot/gateway.rs +++ b/src/system/bot/gateway.rs @@ -80,9 +80,9 @@ impl Gateway { } } Ok(event) => match event { - twilight_gateway::Event::Ready(_) => { + twilight_gateway::Event::Ready(ready) => { system_channel - .send(SystemEvent::GatewayConnected(bot_conf.member_id)) + .send(SystemEvent::GatewayConnected(bot_conf.member_id, ready.user.id)) .await; } -- cgit 1.4.1