I am able to display users online and offline when a certain command is used. I would like to add another field to my embed with the percentage of members online (e.g 73% of the members are online). I understand the logic behind it, I am just having trouble with the syntax. I haven't been able to find anything online that would work with my code. Thank you in advance!
module.exports = {
users: function(message) {
let guild = client.guilds.cache.get('727640959634112553');
const Embed = new Discord.MessageEmbed();
Embed.setTitle(`Server Activity`);
Embed.addField("Online Members", message.guild.members.cache.filter(member => member.presence.status !== "offline").size);
Embed.addField("Offline Members", message.guild.members.cache.filter(member => member.presence.status == "offline").size);
return message.channel.send(Embed);
}
}