module 'discord' has no attribute 'Intents' #163
-
version 1.9.1 import discord
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='?', intents=intents)
bot.run('<token>')
Is this a bug or something has changed? This is basically code from the examples. |
Beta Was this translation helpful? Give feedback.
Answered by
TheOnlyWayUp
Jan 6, 2022
Replies: 1 comment 4 replies
-
There are no intents for users, hence it's no longer a part of this library. The examples are outdated and 1.x.x is not maintained anymore, if you're interested, you could try using the rebase branch. To answer your question, don't use intents anywhere in your code, they're not needed or used by discord.py-self. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
Serek16
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are no intents for users, hence it's no longer a part of this library. The examples are outdated and 1.x.x is not maintained anymore, if you're interested, you could try using the rebase branch. To answer your question, don't use intents anywhere in your code, they're not needed or used by discord.py-self.