1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-10 02:00:20 +00:00

Update skip.js

This commit is contained in:
MatteZ02 2020-02-10 21:56:43 +02:00
parent b776997c38
commit 8708133e1f

View File

@ -33,7 +33,7 @@ function skipSong(serverQueue, msg) {
function vote(serverQueue, msg) {
serverQueue.votesNeeded = Math.floor(serverQueue.voiceChannel.members.size / 2);
serverQueue.votesNeeded.toFixed();
if (msg.guild.voiceConnection.channel.members.size > 2) {
if (serverQueue.voiceChannel.members.size > 2) {
if (serverQueue.voters.includes(msg.member.id)) return msg.channel.send('<:redx:674263474704220182> You have already voted to skip!');
serverQueue.votes++;
serverQueue.voters.push(msg.member.id);