From d98937b34bbb7582f4c13e0d18bcc30febe1d174 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 15 Feb 2024 17:18:15 -0500 Subject: Finally fixed some issues - Voting should work properly? - Now the bot tells the user if they are already in vc - Thumbnails will be null when switching tracks --- Utilities/Voting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Utilities') diff --git a/Utilities/Voting.js b/Utilities/Voting.js index 5bea29c..0d986b8 100644 --- a/Utilities/Voting.js +++ b/Utilities/Voting.js @@ -60,7 +60,7 @@ export async function voteSkip(interaction, bot) { const members = voiceChannel.members.filter(m => !votes.has(m.id)); // Calculate the number of votes required to skip the audio track - const votesRequired = Math.ceil((members.size - votes.size) / 2); + const votesRequired = Math.ceil(members.size / 2); // Check if the message author has already voted if (votes.has(interaction.user.id)) { -- cgit v1.2.3