From 4bda51e696a19a9c0af42166ca224180e9b8b443 Mon Sep 17 00:00:00 2001 From: MatteZ02 <47610069+MatteZ02@users.noreply.github.com> Date: Fri, 11 Oct 2019 20:36:46 +0300 Subject: [PATCH] Update play.js --- commands/play.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/play.js b/commands/play.js index 24c4ff0e..226a298e 100644 --- a/commands/play.js +++ b/commands/play.js @@ -54,13 +54,13 @@ module.exports = { }); } catch (err) { console.error(err); - return Message.channel.send(':x: Cancelling video selection.'); + return message.channel.send(':x: Cancelling video selection or no results.'); } const videoIndex = parseInt(response.first().content); var video = await youtube.getVideoByID(videos[videoIndex - 1].id); } catch (err) { console.error(err); - return message.channel.send(':x: I could not obtain any search results.'); + return message.channel.send(':x: Cancelling video selection or no results'); } } return client.funcs.handleVideo(video, message, voiceChannel, client, false);