Files
ohrwurm/src/state.rs
Johannes Heuel 0bee437e53
All checks were successful
tests / fmt (push) Successful in 1m12s
tests / clippy (push) Successful in 1m12s
tests / pre-commit (push) Successful in 1m14s
tests / build (push) Successful in 1m30s
tests / test (push) Successful in 1m44s
save media source in metadata typemap
2024-06-17 17:06:59 +02:00

24 lines
609 B
Rust

use dashmap::DashMap;
use songbird::Songbird;
use std::sync::Arc;
use twilight_cache_inmemory::InMemoryCache;
use twilight_http::Client as HttpClient;
use twilight_model::id::{marker::GuildMarker, Id};
use twilight_standby::Standby;
pub(crate) type State = Arc<StateRef>;
#[derive(Debug)]
pub(crate) struct Settings {
pub(crate) loop_queue: bool,
}
#[derive(Debug)]
pub(crate) struct StateRef {
pub(crate) http: HttpClient,
pub(crate) cache: InMemoryCache,
pub(crate) songbird: Songbird,
pub(crate) standby: Standby,
pub(crate) guild_settings: DashMap<Id<GuildMarker>, Settings>,
}