const guildinfo = JSON.parse(fs.readFileSync("./data/public/guildinfo.json", "utf8")); const bTC = guildinfo["Guild Info"][message.guild.id]["Block Channel"]["Text Channel"]; const bVC = guildinfo["Guild Info"][message.guild.id]["Block Channel"]["Voice Channel"]; const voiceChannel = message.member.voice.channel; const textChannel = message.channel; const Embed = new discord.MessageEmbed(); if (bTC.includes(textChannel.id)) { Embed.setColor(colour.red_dark); Embed.setTitle(`❌ \`${message.author.username}\` **This Channel Cannot Be Used For\`[Music Command]\`**`); return message.channel.send(Embed).catch(console.error); } else if (bTC.includes(voiceChannel.id)) { Embed.setColor(colour.red_dark); Embed.setTitle(`🔇 \`${message.author.username}\` **Please Connect To A Right Music \`[Voice Channel]\`**`); return message.channel.send(Embed).catch(console.error); }