|
|
@ -46,8 +46,13 @@ class playCommand extends Command {
|
|
|
|
voiceChannel.leave();
|
|
|
|
voiceChannel.leave();
|
|
|
|
return message.channel.send('Music ended, i left the channel');
|
|
|
|
return message.channel.send('Music ended, i left the channel');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(err => {
|
|
|
|
|
|
|
|
console.error(err);
|
|
|
|
|
|
|
|
voiceChannel.leave();
|
|
|
|
|
|
|
|
return message.channel.send('An error has occured! is the link you sent valid?');
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = playCommand;
|
|
|
|
module.exports = playCommand;
|
|
|
|