feat(gateway): add cache event handler stubs
This commit is contained in:
@@ -7,6 +7,8 @@ use tracing::info;
|
||||
use twilight_gateway::Event;
|
||||
use twilight_http::Client as HttpClient;
|
||||
|
||||
use crate::cache;
|
||||
|
||||
lazy_static::lazy_static! {
|
||||
static ref ALLOWED_EVENTS: Vec<&'static str> = [
|
||||
"INTERACTION_CREATE",
|
||||
@@ -25,6 +27,8 @@ pub async fn handle_event<'a>(
|
||||
_db: Pool,
|
||||
rconn: redis::Client
|
||||
) -> anyhow::Result<()> {
|
||||
cache::handle_event(event.clone(), rconn.clone()).await?;
|
||||
|
||||
match event {
|
||||
Event::GatewayInvalidateSession(resumable) => {
|
||||
info!("shard {} session invalidated, resumable? {}", shard_id, resumable);
|
||||
|
||||
Reference in New Issue
Block a user