Fixed play command
This commit is contained in:
@@ -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,6 +38,6 @@ pub async fn run(ctx: &Context, command: &ApplicationCommandInteraction) {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
|
||||
command.name("skip").description("Skip the current track")
|
||||
pub fn register() -> CreateCommand {
|
||||
CreateCommand::new("skip").description("Skip the current track")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user