From 894a1d82f511eb0e6aaab869e5d32f0bf3b11fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christer=20War=C3=A9n?= Date: Mon, 6 Sep 2021 18:38:46 +0300 Subject: [PATCH] Updated play command --- src/client/commands/play.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/client/commands/play.js b/src/client/commands/play.js index 7b996e0..bd88b01 100644 --- a/src/client/commands/play.js +++ b/src/client/commands/play.js @@ -17,7 +17,10 @@ module.exports = { let message = {}; if(!client.stations) { message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild); - return interaction.reply(client.messageEmojis["error"] + message.errorToGetPlaylist); + return interaction.reply({ + content: client.messageEmojis["error"] + message.errorToGetPlaylist, + ephemeral: true + }); } let query = interaction.options?.getString("query") ?? interaction.values?.[0]; @@ -28,7 +31,7 @@ module.exports = { const radio = client.radio.get(interaction.guild.id); const voiceChannel = interaction.member.voice.channel; if (!radio) { - if (!interaction.member.voice.channel) + if (!voiceChannel) return interaction.reply({ content: client.messageEmojis["error"] + client.messages.noVoiceChannel, ephemeral: true