diff options
Diffstat (limited to 'commands/previous.js')
| -rw-r--r-- | commands/previous.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/previous.js b/commands/previous.js index 6d5eff3..66c1930 100644 --- a/commands/previous.js +++ b/commands/previous.js @@ -29,6 +29,7 @@ export default { .setDescription('Goes to previous 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 }); return await previousAudio(bot, interaction); } }; |
