diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2023-03-26 23:44:05 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2023-05-04 22:19:10 -0400 |
| commit | 8c81aadddea65eef415f5b84986db21eff1fb20f (patch) | |
| tree | 3e7cde1a4f9cc0e342dd1e9bcdfdc189c3645e28 /Utilities | |
| parent | b29ab06623fd24cfc2a611bdd658b4d2ef934335 (diff) | |
| download | DLAP-8c81aadddea65eef415f5b84986db21eff1fb20f.tar.gz DLAP-8c81aadddea65eef415f5b84986db21eff1fb20f.tar.bz2 DLAP-8c81aadddea65eef415f5b84986db21eff1fb20f.zip | |
2023 update; Started to work on i18n; Readded voting
Diffstat (limited to 'Utilities')
| -rw-r--r-- | Utilities/Voting.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Utilities/Voting.js b/Utilities/Voting.js index ad9b656..c737339 100644 --- a/Utilities/Voting.js +++ b/Utilities/Voting.js @@ -37,7 +37,7 @@ async function commandCheck(interaction, bot) { } } -export async function voteSkip(interaction, bot) { /* +export async function voteSkip(interaction, bot) { if (interaction.commandName === 'next') { if (nextCheck !== true) { // Reset the votes if the current value of nextCheck is different from the command being executed @@ -83,7 +83,7 @@ export async function voteSkip(interaction, bot) { /* return await interaction.reply({ content: 'Cannot play next music. Player is currently stopped...', ephemeral: true }); } } -*/ + 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 }); console.log('Force skipping this audio track...'); |
