aboutsummaryrefslogtreecommitdiff
path: root/Utilities/Voting.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2023-10-15 23:54:53 -0400
committerAndrew Lee <alee14498@protonmail.com>2023-10-15 23:54:53 -0400
commit3d4f5061d402b44218cdfd351f39317d5f8ecd11 (patch)
tree328b380cc4c9312a405e4531fc2a1cbab482385e /Utilities/Voting.js
parent8c81aadddea65eef415f5b84986db21eff1fb20f (diff)
downloadDLAP-3d4f5061d402b44218cdfd351f39317d5f8ecd11.tar.gz
DLAP-3d4f5061d402b44218cdfd351f39317d5f8ecd11.tar.bz2
DLAP-3d4f5061d402b44218cdfd351f39317d5f8ecd11.zip
New feature (embed thumbnails); Docker; Package update
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 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();