1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 03:30:18 +00:00

Update playlist.js

This commit is contained in:
Matte 2019-10-21 14:58:27 +03:00 committed by GitHub
parent 88806ad7b2
commit 97e9da5628
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,6 @@ module.exports = {
if (client.global.db.guilds[message.guild.id].premium) { if (client.global.db.guilds[message.guild.id].premium) {
if (args[1] === 'play') { if (args[1] === 'play') {
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! You can still add songs with the playlist add command!');
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!');
const permissions = voiceChannel.permissionsFor(message.client.user); const permissions = voiceChannel.permissionsFor(message.client.user);
if (!permissions.has('CONNECT')) { if (!permissions.has('CONNECT')) {