aboutsummaryrefslogtreecommitdiff
path: root/commands/next.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/next.js')
-rw-r--r--commands/next.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/next.js b/commands/next.js
index b507cd1..88dac40 100644
--- a/commands/next.js
+++ b/commands/next.js
@@ -30,6 +30,7 @@ export default {
.setDescription('Goes to next music')
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator),
async execute(interaction, bot) {
+ if (!interaction.member.voice.channel) return await interaction.reply({ content: 'You need to be in a voice channel to use this command.', ephemeral: true });
await interaction.reply({ content: 'Playing next music', ephemeral: true });
player.stop();
return await nextAudio(bot);