summary refs log tree commit diff
path: root/src/system/bot
diff options
context:
space:
mode:
authorAshelyn Rose <git@ashen.earth>2024-10-05 20:05:36 -0600
committerAshelyn Rose <git@ashen.earth>2024-10-05 20:05:36 -0600
commitf2cd49662f74deb894518d5169fae533454bd6a6 (patch)
tree2eebd051d5fe3ec8d739e7ec9dfe8f2c0c102de1 /src/system/bot
parentca4b0e32be531053f19ce2895b994130b247af4a (diff)
System manager now knows user_id of each bot
Diffstat (limited to 'src/system/bot')
-rw-r--r--src/system/bot/gateway.rs4
1 files changed, 2 insertions, 2 deletions
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;
                         }