My code is
const list = client.guilds.find("id", "335507048017952771")
for (user of list.users){
console.log(user[1].username);
}
This does literally nothing. There is no error or anything.
I just want the bot to find a server and then log all members from said server.
Displaying all connected users Discord.js The answers in this question didn't really help me at all. I did try using message.guild.users
but that also did nothing. Can't seem to find anything on the Discord.js site to help me either.