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:
parent
b776997c38
commit
8708133e1f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user