split main.rs into files

This commit is contained in:
2024-02-16 14:23:20 +01:00
parent eacf4fffae
commit 8a8a807547
14 changed files with 477 additions and 276 deletions

15
src/state.rs Normal file
View File

@@ -0,0 +1,15 @@
use songbird::Songbird;
use std::sync::Arc;
use twilight_cache_inmemory::InMemoryCache;
use twilight_http::Client as HttpClient;
use twilight_standby::Standby;
pub(crate) type State = Arc<StateRef>;
#[derive(Debug)]
pub(crate) struct StateRef {
pub(crate) http: HttpClient,
pub(crate) cache: InMemoryCache,
pub(crate) songbird: Songbird,
pub(crate) standby: Standby,
}