Checkpoint

This commit is contained in:
2026-02-26 01:55:07 -03:00
parent 70c531ddac
commit d0b5f86740
7 changed files with 59 additions and 43 deletions
+1 -1
View File
@@ -494,7 +494,7 @@ where
});
}
Some(json) = gateway_rx.recv() => {
gateway.send(json)
gateway.command(&json);
}
}
}
+2 -2
View File
@@ -22,7 +22,7 @@ use std::sync::Arc;
use tokio::sync::mpsc::UnboundedSender;
use twilight_cache_inmemory::InMemoryCache;
use twilight_http::Client;
use twilight_model::oauth::Application;
use twilight_model::{gateway::payload::outgoing::UpdatePresence, oauth::Application};
use crate::framework::{
bot::PrefixGetter, commands::Command, interactions::registry::ComponentRegistry,
@@ -51,7 +51,7 @@ pub struct Runtime<T, E> {
pub cache: InMemoryCache,
/// Used to send messages through the gateway.
pub gateway_tx: UnboundedSender<String>,
pub gateway_tx: UnboundedSender<UpdatePresence>,
pub shard_number: u32,
pub shard_total: u32,