diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-02 00:31:17 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-02 00:40:10 -0500 |
| commit | e0fe64b06c0eb8b92578ae1bf5a166f8d633c9b3 (patch) | |
| tree | af930df72f7bfeb2a3ca7c11321f894b02ad7411 /commands/next.js | |
| parent | ebdf6e92b146d1bad3b0e295e926f9e43e26c532 (diff) | |
| download | DLAP-e0fe64b06c0eb8b92578ae1bf5a166f8d633c9b3.tar.gz DLAP-e0fe64b06c0eb8b92578ae1bf5a166f8d633c9b3.tar.bz2 DLAP-e0fe64b06c0eb8b92578ae1bf5a166f8d633c9b3.zip | |
Fixed duration date; More stop functions; Required in voice channel
Diffstat (limited to 'commands/next.js')
| -rw-r--r-- | commands/next.js | 1 |
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); |
