mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2026-11-03 08:25:00 +00:00
Updated play command
This commit is contained in:
1 parent
a9857cb34b
commit
f9ce2bfaf9
1 file changed
+6
-5
@@ -43,7 +43,10 @@ module.exports = {
|
||||
ephemeral: true
|
||||
});
|
||||
}
|
||||
if (!query) return interaction.reply(client.messages.noQuery);
|
||||
if (!query) return interaction.reply({
|
||||
content: client.messages.noQuery,
|
||||
ephemeral: true
|
||||
});
|
||||
const permissions = voiceChannel.permissionsFor(interaction.client.user);
|
||||
if (!permissions.has("CONNECT")) {
|
||||
return interaction.reply({
|
||||
@@ -75,14 +78,12 @@ module.exports = {
|
||||
station = client.stations[number];
|
||||
}
|
||||
} else {
|
||||
if (query.length < 3)
|
||||
return interaction.reply({
|
||||
if (query.length < 3) return interaction.reply({
|
||||
content: client.messageEmojis["error"] + client.messages.tooShortSearch,
|
||||
ephemeral: true
|
||||
});
|
||||
const sstation = await client.funcs.searchStation(query, client);
|
||||
if (!sstation)
|
||||
return interaction.reply({
|
||||
if (!sstation) return interaction.reply({
|
||||
content: client.messageEmojis["error"] + client.messages.noSearchResults,
|
||||
ephemeral: true
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user