feat: user consent setting and retrieving (NOTE: does not affect recording yet)

This commit is contained in:
2026-04-21 03:11:27 -04:00
parent 62399c2046
commit 0ce26fc0e5
13 changed files with 589 additions and 201 deletions

View File

@@ -3,7 +3,10 @@ use std::{fmt::Debug, sync::Arc};
use futures::future::BoxFuture;
use opendal::Operator;
use patricia_tree::StringPatriciaMap;
use songbird::{Songbird, driver::{Channels, SampleRate}};
use songbird::{
Songbird,
driver::{Channels, SampleRate},
};
use tokio_util::sync::CancellationToken;
use twilight_model::{
application::{command::Command, interaction::Interaction},
@@ -13,7 +16,7 @@ use twilight_model::{
},
};
use crate::{VCs, track_vcs::GuildVoiceChannelToTextChannel};
use crate::{GuildVoiceChannelToTextChannel, UserDataManager, VCs};
mod debug;
mod join;
@@ -34,7 +37,7 @@ pub struct State {
pub discord_voice_channel_corresponding_text_channel: Arc<GuildVoiceChannelToTextChannel>,
pub recording_data: Operator,
pub songbird: Arc<Songbird>,
pub user_data: Operator,
pub user_data_manager: UserDataManager,
pub vcs: Arc<VCs>,
}