Youtube Discord Bot tutorial question

Im 19 min in and we’re launching the bot with a few lines of code. Its all going great on his side of things, but replit is saying to me that line 4 (client = discord.Client() ) is missing an ‘intent’?

I have copied the exact same thing that I see in the tutorial, I’m not sure what is missing.

You need to use the same version of the library or you need to make any changes as needed when switching to a newer version.

https://discordjs.guide/additional-info/changes-in-v13.html#intents

https://discordjs.guide/additional-info/changes-in-v14.html#before-you-start

FYI this is the error message that I get

Hey! Thanks for your reply. I’m very new to this and I unfortunately don’t understand any of this. I think i understand that i need to manually add which intents i want to my discord bot from this list: https://discord.com/developers/docs/topics/gateway#list-of-intents ?
if yes, how do i add them

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.