I have a function which checks if a user is a premium user.
this._isPremium(message.member.id, message).then(function(premium, message) {
console.log("premium status"+premium);
});
//access premium var outside of then
if(premium) {
console.log("premium user")
}
It returns a boolean (premium), but I need to access the boolean outside of the then loop to check whether it is true or false.
It echos just fine inside the then loop I just can't get it out of there.