aboutsummaryrefslogtreecommitdiff
path: root/Utilities/Voting.js
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/Voting.js')
-rw-r--r--Utilities/Voting.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Voting.js b/Utilities/Voting.js
index 452dc55..fe38ab0 100644
--- a/Utilities/Voting.js
+++ b/Utilities/Voting.js
@@ -57,7 +57,7 @@ export async function voteSkip(interaction, bot) {
if (interaction.options.getSubcommand() === 'vote') {
// Get the members of the voice channel who have not voted yet
const voiceChannel = interaction.member.voice.channel;
- const members = voiceChannel.members.filter(m => !votes.has(m.id));
+ const members = voiceChannel.members.filter(m => !votes.has(m.id) && !m.user.bot);
// Calculate the number of votes required to skip the audio track
const votesRequired = Math.ceil(members.size / 2);