diff --git a/commands/utility/play.js b/commands/utility/play.js index a147da3..291da2a 100644 --- a/commands/utility/play.js +++ b/commands/utility/play.js @@ -46,8 +46,13 @@ class playCommand extends Command { voiceChannel.leave(); 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; \ No newline at end of file +module.exports = playCommand;