request(getuser, function(err, res, body) {
let user = JSON.parse(body);
if (true) {
var groups = Object.keys(user.groups).length - 1;
}
})
How can I acces groups from anywhere? I tried the above code but I can not acces it here:
let founduser = new Discord.RichEmbed()
.addField("Amount of groups", groups)