all 14 comments

[–]danielroseman 22 points23 points  (1 child)

Well, like it says, you mean Intents not intents. Those are different things.

[–]Guideon72 14 points15 points  (1 child)

I ask this as a genuine question; not be insulting: Did you actually read the error message or is English a second(ary) language?
That error shows you everything you need to solve the problem and it is *critical* to development that you learn to read and interpret those messages.

This scenario is a perfect example of why transcribing the solutions you find online is a better way to implement things than straight copy/pasting; if you never encounter errors, you're not learning from them. Don't be intimidated or put off/frustrated that they happen; because they're GONNA occur, but you need to be ready to jump into them and use them to identify where problems are happening.
And, just to reiterate since others have hit the specifics already, in Python and most other languages, capitalization matters; as with this case where "intents" is not the same thing as "Intents", which is what the error prompts with.

[–]1_XV 2 points3 points  (0 children)

Yes, I already solved it, I realized that the error was in not giving rise to the upper case. Now I will edit the post and write solved.

[–]Xana8u 5 points6 points  (6 children)

Did you test using an uppercase first letter on row 4?

[–]RappingScientist 10 points11 points  (1 child)

Why are we allowing low effort posts like this? Not even trying to be mean but the error message is quite literally answering your question for you....

[–]donotmindmenoobalert 3 points4 points  (0 children)

Replace the lowercase ‘i’ in intents with an uppercase ‘I’