mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53:17 +00:00
Updated play command
This commit is contained in:
parent
fa4f5e1e09
commit
894a1d82f5
@ -17,7 +17,10 @@ module.exports = {
|
|||||||
let message = {};
|
let message = {};
|
||||||
if(!client.stations) {
|
if(!client.stations) {
|
||||||
message.errorToGetPlaylist = client.messages.errorToGetPlaylist.replace("%client.config.supportGuild%", client.config.supportGuild);
|
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];
|
let query = interaction.options?.getString("query") ?? interaction.values?.[0];
|
||||||
@ -28,7 +31,7 @@ module.exports = {
|
|||||||
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 (!radio) {
|
||||||
if (!interaction.member.voice.channel)
|
if (!voiceChannel)
|
||||||
return interaction.reply({
|
return interaction.reply({
|
||||||
content: client.messageEmojis["error"] + client.messages.noVoiceChannel,
|
content: client.messageEmojis["error"] + client.messages.noVoiceChannel,
|
||||||
ephemeral: true
|
ephemeral: true
|
||||||
|
Loading…
Reference in New Issue
Block a user