Skip to content

Commit

Permalink
(fix): Ytsearch fix (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
BearTS authored Feb 10, 2021
1 parent 0e5ca23 commit 2775ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/music/ytsearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2775ba6

Please sign in to comment.