1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-12-23 09:53:17 +00:00

Update skip.js

This commit is contained in:
MatteZ02 2020-02-10 21:53:49 +02:00
parent 0829af0d3a
commit 5351d74226

View File

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