My code looks correct, but my bot is no longer detecting messages.

Hello, (I'm French but not bilingual, so sorry in advance if my english isnt good) I created a Discord bot for my server, I'm working with node.js. It was working fine until I added the part "client.on ('guildMemberUpdate'... and the Intents. Maybe it's not related at all. I'm new to coding.
My bot is online but it no longer has its statuses, and it doesn't react at all to messages. Usually I can see when a message is received in the console, but now NOTHING. I only have the confirmation that its online "Congratulations, the Captain has been initialized correctly."

Here is the entire code of the main file index.js in a screenshot or in https://pastebin.com/ejfpnDd5 :

(discord.js version : 14.13.0)
image.png
image.png
image.png
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Was this page helpful?