mirror of
https://github.com/musix-org/musix-oss
synced 2024-12-22 18:03:17 +00:00
Update playlist.js
This commit is contained in:
parent
9f571c10d7
commit
abd09f6b0c
@ -17,6 +17,7 @@ module.exports = {
|
||||
if (client.global.db.guilds[message.guild.id].premium) {
|
||||
if (args[1] === 'play') {
|
||||
const voiceChannel = message.member.voiceChannel;
|
||||
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);
|
||||
if (!permissions.has('CONNECT')) {
|
||||
return message.channel.send(':x: I cannot connect to your voice channel, make sure I have the proper permissions!');
|
||||
|
Loading…
Reference in New Issue
Block a user