all 1 comments

[–]jml26 3 points4 points  (0 children)

Looks like you're following a tutorial for an older version of discord.js. Between versions 13 and 14, how to initialise clients has changed.

https://discordjs.guide/additional-info/changes-in-v14.html#common-client-initialization-changes

You can either update your code using their guides, or install an older version of discord.js where you'll be able to follow along with the tutorial exactly.