check in the bottom left corner of the VS Code window for which version of Python is it using. This issue usually occurs for me when I’m working in a virtual environment but VS Code is pointing to my global Python installation.
I opened command prompt (I'm on Windows) and I typed:
'''none
pip3 install discord
'''
Then it said it installed discord, and I was ready to go! (I already had Python 3.9.7 installed)
Then when I opened VSCode up and typed:   import discord   I got this error message:

"discord" is not accessedPylance
Import "discord" could not be resolvedPylancereportMissingImports

What does this mean, and how can I fix it? I was really looking forward to coding the bot, but don't know how, now that this is messed up.
I tried to add Python to VSCode, but it won't work