add loop command
This commit is contained in:
12
src/state.rs
12
src/state.rs
@@ -1,15 +1,25 @@
|
||||
use songbird::Songbird;
|
||||
use dashmap::DashMap;
|
||||
use songbird::{input::YoutubeDl, 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;
|
||||
use uuid::Uuid;
|
||||
|
||||
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>,
|
||||
pub(crate) tracks: DashMap<Id<GuildMarker>, DashMap<Uuid, YoutubeDl>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user