format and restructure, began working on schedule

This commit is contained in:
2024-09-05 17:10:56 -04:00
parent 0f1a97770a
commit 794d8cc34e
34 changed files with 561 additions and 212 deletions

View File

@@ -1,4 +1,7 @@
use serenity::{all::{CommandInteraction, CreateCommand}, prelude::*};
use serenity::{
all::{CommandInteraction, CreateCommand},
prelude::*,
};
use super::{get_songbird, create_response, edit_response};
@@ -13,7 +16,12 @@ pub async fn run(ctx: &Context, command: &CommandInteraction) {
let guild_id = match &command.guild_id {
Some(guild_id) => guild_id,
None => {
edit_response(&ctx, &command, "Unable to find the current server ID".to_string()).await;
edit_response(
&ctx,
&command,
"Unable to find the current server ID".to_string(),
)
.await;
return;
}
};
@@ -25,10 +33,10 @@ pub async fn run(ctx: &Context, command: &CommandInteraction) {
Ok(_) => {
log::debug!("Resumed the track");
edit_response(&ctx, &command, format!("Resuming the track")).await;
},
Err(err) => {
}
Err(err) => {
edit_response(&ctx, &command, format!("Failed to resume: {}", err)).await;
}
}
}
}
}