Skip to content
Advertisement

(discord.js) Problem listing all the members

JavaScript

This function never returns anything. Can you help me?

Advertisement

Answer

As Cameron said in the comments you need to enable the GUILD_MEMBERS and the GUILDS intent from your Client constructer by listing it in the intents property of the Client Options like so

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement