chore: refactor into a RecordingDataManager, lay the ground work for a RenderManager
This commit is contained in:
@@ -6,7 +6,10 @@ use twilight_model::{
|
||||
command::{Command, CommandOption, CommandOptionType, CommandType},
|
||||
interaction::{Interaction, InteractionData, application_command::CommandOptionValue},
|
||||
},
|
||||
channel::{ChannelType, message::{Embed, MessageFlags}},
|
||||
channel::{
|
||||
ChannelType,
|
||||
message::{Embed, MessageFlags},
|
||||
},
|
||||
http::interaction::{InteractionResponse, InteractionResponseType},
|
||||
id::{Id, marker::ChannelMarker},
|
||||
};
|
||||
@@ -122,7 +125,12 @@ enum ParseOptionsError {
|
||||
|
||||
impl From<ParseOptionsError> for Embed {
|
||||
fn from(error: ParseOptionsError) -> Self {
|
||||
EmbedBuilder::new().title("Error parsing options").description(Report::from_error(error).to_string()).validate().unwrap().build()
|
||||
EmbedBuilder::new()
|
||||
.title("Error parsing options")
|
||||
.description(Report::from_error(error).to_string())
|
||||
.validate()
|
||||
.unwrap()
|
||||
.build()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,5 +255,7 @@ pub async fn handle(state: State, interaction: Interaction) {
|
||||
|
||||
tracing::info!(?voice_channel, ?start, ?end);
|
||||
|
||||
let duration = end - start;
|
||||
|
||||
todo!();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user