aboutsummaryrefslogtreecommitdiff
path: root/commands/join.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/join.js')
-rw-r--r--commands/join.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/join.js b/commands/join.js
index c5f686d..aa3eb66 100644
--- a/commands/join.js
+++ b/commands/join.js
@@ -29,6 +29,7 @@ export default {
.setDescription('Joins voice chat')
.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: 'Joining voice channel', ephemeral: true });
return await voiceInit(bot);
}