Checkpoint
This commit is contained in:
@@ -494,7 +494,7 @@ where
|
||||
});
|
||||
}
|
||||
Some(json) = gateway_rx.recv() => {
|
||||
gateway.send(json)
|
||||
gateway.command(&json);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user