Fixed play command

This commit is contained in:
2024-09-05 11:01:08 -04:00
parent fce4a0a4a2
commit bce363db7e
23 changed files with 410 additions and 552 deletions

View File

@@ -1,12 +1,10 @@
use log::{debug, error};
use serenity::prelude::*;
use serenity::builder::CreateApplicationCommand;
use serenity::model::application::interaction::application_command::ApplicationCommandInteraction;
use serenity::{all::{CommandInteraction, CreateCommand}, prelude::*};
use super::{get_songbird, create_response, edit_response};
pub async fn run(ctx: &Context, command: &ApplicationCommandInteraction) {
pub async fn run(ctx: &Context, command: &CommandInteraction) {
// Create the initial response
if let Err(why) = create_response(&ctx, &command, "Processing command...".to_string()).await {
error!("Failed to create response message: {}", why);
@@ -40,8 +38,6 @@ pub async fn run(ctx: &Context, command: &ApplicationCommandInteraction) {
}
}
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
command
.name("resume")
.description("Resume the current track")
pub fn register() -> CreateCommand {
CreateCommand::new("resume").description("Resume the current track")
}