aboutsummaryrefslogtreecommitdiff
path: root/commands/status.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/status.js')
-rw-r--r--commands/status.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/status.js b/commands/status.js
index 3143e16..cf49509 100644
--- a/commands/status.js
+++ b/commands/status.js
@@ -29,6 +29,7 @@ export default {
.setName('status')
.setDescription('Checks what audio file is playing currently'),
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 });
let audioID = currentTrack;
audioID++;