mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 21:13:18 +00:00
Update play.js
This commit is contained in:
parent
7b20498221
commit
88806ad7b2
@ -13,7 +13,6 @@ module.exports = {
|
|||||||
const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : "";
|
const url = args[1] ? args[1].replace(/<(.+)>/g, "$1") : "";
|
||||||
const serverQueue = client.queue.get(message.guild.id);
|
const serverQueue = client.queue.get(message.guild.id);
|
||||||
const voiceChannel = message.member.voiceChannel;
|
const voiceChannel = message.member.voiceChannel;
|
||||||
return message.channel.send(':x: I\'m sorry but playing music is not available due to an error with FFMPEG!');
|
|
||||||
if (!serverQueue) {
|
if (!serverQueue) {
|
||||||
if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
|
if (!voiceChannel) return message.channel.send(':x: I\'m sorry but you need to be in a voice channel to play music!');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user