let fetched = ops.active.get(message.guild.id); if (!fetched) return message.channel.send({ embed: { color: "#F30000", description: "There isn't any music playing." } }); if (!message.member.voice.channel) return message.channel.send({ embed: { color: "#F30000", description: "You are not connected to a voice channel." } }); if (message.member.voice.channel !== message.guild.me.voice.channel) return message.channel.send({ embed: { color: "#F30000", description: "You need to be in the same voice channel as me!" } }); ops.active = []; fetched.connection.disconnect(); console.log(fetched.connection); return message.channel.send( "Music was stopped and I succesfully disconnected." ); message.guild.me.voice.channel.leave();