mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-09 23:00:18 +00:00
Updated play.js
This commit is contained in:
parent
8316723a6a
commit
d1fe9177af
@ -30,18 +30,15 @@ module.exports = {
|
|||||||
let url = query ? query.replace(/<(.+)>/g, "$1") : "";
|
let url = query ? query.replace(/<(.+)>/g, "$1") : "";
|
||||||
const radio = client.radio.get(interaction.guild.id);
|
const radio = client.radio.get(interaction.guild.id);
|
||||||
const voiceChannel = interaction.member.voice.channel;
|
const voiceChannel = interaction.member.voice.channel;
|
||||||
if (!radio) {
|
if (!voiceChannel) return interaction.reply({
|
||||||
if (!voiceChannel)
|
content: client.messageEmojis["error"] + client.messages.noVoiceChannel,
|
||||||
return interaction.reply({
|
ephemeral: true
|
||||||
content: client.messageEmojis["error"] + client.messages.noVoiceChannel,
|
});
|
||||||
ephemeral: true
|
if (radio) {
|
||||||
});
|
if (voiceChannel !== radio.voiceChannel) return interaction.reply({
|
||||||
} else {
|
content: client.messageEmojis["error"] + client.messages.wrongVoiceChannel,
|
||||||
if (voiceChannel !== radio.voiceChannel)
|
ephemeral: true
|
||||||
return interaction.reply({
|
});
|
||||||
content: client.messageEmojis["error"] + client.messages.wrongVoiceChannel,
|
|
||||||
ephemeral: true
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
if (!query) return interaction.reply({
|
if (!query) return interaction.reply({
|
||||||
content: client.messages.noQuery,
|
content: client.messages.noQuery,
|
||||||
|
Loading…
Reference in New Issue
Block a user