mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-23 06:43:17 +00:00
Update skip.js
This commit is contained in:
parent
0829af0d3a
commit
5351d74226
@ -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!');
|
||||||
|
Loading…
Reference in New Issue
Block a user