diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-15 17:18:15 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-15 17:20:59 -0500 |
| commit | d98937b34bbb7582f4c13e0d18bcc30febe1d174 (patch) | |
| tree | 04133cf911474c50674084b58a65361bf8990a35 /Utilities/Voting.js | |
| parent | 16b7fb29fb5bd01f346749020dc43fa24a16993f (diff) | |
| download | DLAP-d98937b34bbb7582f4c13e0d18bcc30febe1d174.tar.gz DLAP-d98937b34bbb7582f4c13e0d18bcc30febe1d174.tar.bz2 DLAP-d98937b34bbb7582f4c13e0d18bcc30febe1d174.zip | |
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
Diffstat (limited to 'Utilities/Voting.js')
| -rw-r--r-- | Utilities/Voting.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |
