Getting a member list on new guild event
I am trying to get a list of members when a new server add's my bot.
Listening on the event "client.on("guildCreate", async (guild) => {"
I am trying to print console.log(guild.members)
but i dont get anything userful
20 Replies
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I keep getting the same object
when i try to access the members part
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
I changed it to fetch
but now i done get anything in my console log
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
where can i check that
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
yes
its on
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
This is what i get
when i console log user
now i try to access the members object inside the guild
where do i get the members list
got it
fetch didnt give any output for me
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View