aboutsummaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Voting.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Voting.js b/Utilities/Voting.js
index c737339..dc2f153 100644
--- a/Utilities/Voting.js
+++ b/Utilities/Voting.js
@@ -85,7 +85,7 @@ export async function voteSkip(interaction, bot) {
}
if (interaction.options.getSubcommand() === 'force') {
- if (!interaction.member.roles.cache.has(djRole) && interaction.user.id !== ownerID && !interaction.member.permission.has(PermissionFlagsBits.ManageGuild)) return interaction.reply({ content: 'You need a specific role to execute this command', ephemeral: true });
+ if (!interaction.member.roles.cache.has(djRole) && interaction.user.id !== ownerID && !interaction.memberPermissions.has(PermissionFlagsBits.ManageGuild)) return interaction.reply({ content: 'You need a specific role to execute this command', ephemeral: true });
console.log('Force skipping this audio track...');
if (playerState === 'Playing' || playerState === 'Paused') {
votes.clear();