From 2775ba68fc4a69c5de91601d3a9813c4a23e6e98 Mon Sep 17 00:00:00 2001 From: BearTS Date: Wed, 10 Feb 2021 11:28:53 +0530 Subject: [PATCH] (fix): Ytsearch fix (#100) --- commands/music/ytsearch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/music/ytsearch.js b/commands/music/ytsearch.js index 1a028ceb..a4c64ec1 100644 --- a/commands/music/ytsearch.js +++ b/commands/music/ytsearch.js @@ -14,7 +14,7 @@ module.exports = { if (!message.member.voice.channel){ return client.musicPlayer.sendError('VC_NOT_FOUND', message); - } else if (message.guild.me.voice.channel?.id !== message.member.voice.channel.id){ + } else if (message.guild.me.voice.channel && message.guild.me.voice.channel.id !== message.member.voice.channel.id){ return client.musicPlayer.sendError('VC_UNIQUE', message); } else if (!args.length){ return client.musicPlayer.sendError('NO_ARGS_TITLE', message);