K
K
ka4ergaa2022-02-14 16:28:34
Node.js
ka4ergaa, 2022-02-14 16:28:34

The bot does not catch the joining of a new member to the server, can it be fixed on Discord.js v12.5.3?

The bot ignores the joining of a new member to the server, although he did everything according to the guide

client.on('guildMemberAdd', member => {
    console.log(member.nickname)

    const channelId = "862631463819542529";

    const channel = member.guild.channels.cache.get(channelId);
    channel.send('');
})

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-02-14
@ka4ergaa

update to the latest version, in 12.5.3 there is no way to fix this.
using latest version:
enable intent GUILD_MEMBERS:

const client = new Client({ intents: [...другие интенты, Intents.FLAGS.GUILD_MEMBERS] });

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question