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:
parent
b776997c38
commit
8708133e1f
@ -33,7 +33,7 @@ function skipSong(serverQueue, msg) {
|
|||||||
function vote(serverQueue, msg) {
|
function vote(serverQueue, msg) {
|
||||||
serverQueue.votesNeeded = Math.floor(serverQueue.voiceChannel.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 (serverQueue.voiceChannel.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!');
|
||||||
serverQueue.votes++;
|
serverQueue.votes++;
|
||||||
serverQueue.voters.push(msg.member.id);
|
serverQueue.voters.push(msg.member.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user