Changing big initials to messages

This commit is contained in:
MatteZ02
2020-03-12 02:59:52 +02:00
committed by Christer Warén
parent 44b35eee8c
commit a2fa939d07
3 changed files with 7 additions and 7 deletions

View File

@ -3,7 +3,7 @@ module.exports = function (client, msg, command) {
const permissions = msg.channel.permissionsFor(msg.author);
if (!radio || !radio.playing) return msg.channel.send('There is nothing playing!');
if (msg.author.id !== client.config.devId) {
if (msg.member.voice.channel !== radio.voiceChannel) return msg.channel.send(`you need to be in the same voice channel as RadioX to use this command!`);
if (msg.member.voice.channel !== radio.voiceChannel) return msg.channel.send(`You need to be in the same voice channel as RadioX to use this command!`);
if (!permissions.has(command.permission)) {
msg.channel.send(`You need the \`${command.permission}\` permission to use this command!`);
return false;