mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-14 03:30:18 +00:00
Update play.js
This commit is contained in:
parent
74548e8f88
commit
0be11ffedd
@ -13,6 +13,7 @@ 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