Here is my code that is trying to access the user's avatar:
Client.on("guildMemberAdd", newMember => {
console.log("Welcomed member avatar: " + newMember.user.avatar);
console.log("Welcomed member avatarURL: " + newMember.user.avatarURL);
});
Above code works fine if its a user that has just joined the server and has setup an avatar which is different from discord's default avatar. But for users that have the discord's default avatar, both avatar and avatarURL is null.
So how do I get this working for such users?
BTW this is possible because bots like https://welcomer.fun/ are doing it already.
discord.py
be? =) – Quite