The Aim: The aim is to log all users of a server in the console
Issue: When I run the command, it only prints out two users in the console.
Code:
if (cmd === "members") {
console.log("Server: " + msg.guild.name)
msg.guild.members.map(members => {
console.log(green(members.user.username))
})
}
Console:
Server: lovell ���
brandon
felony .
Other Attempts: I tried using the forEach()
function but the same result was shown.
Version of Discord.js: v11
Any help would be appreciated ;)