Discord.py: Nameerror: Name 'intents' Is Not Defined
I'm trying to use intents in my bot but when running the following code: import discord from discord.ext import commands intents = discord.Intents.default() intents.members = True
Solution 1:
You are most likely not actually using discord.py 1.5.1, you can print discord.__version__
after importing it to double check. Best practise is to use Python venv for packages like this.
Additionally, to make sure you are always accessing the correct pip, you can use python -m pip
. This means you are always using pip for the same version you will invoke the script with later.
Post a Comment for "Discord.py: Nameerror: Name 'intents' Is Not Defined"