intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix=',', intents=intents)
You also have to enable privileged intents in the developer portal
More Related Contents:
- Discord Py on_message bot=False blocked?
- Why does on_message stop commands from working?
- Discord.py on_member_join not working, no error message
- Commands don’t run in discord.py 2.0 – no errors, but run in discord.py 1.7.3
- Why doesn’t multiple on_message events work?
- Cooldown For Command On Discord Bot Python
- How do I use cogs with discord.py?
- Python – DM a User Discord Bot
- Discord Bot can only see itself and no other users in guild
- What are the differences between Bot and Client?
- Discord.py error: TypeError: __new__() got an unexpected keyword argument ‘deny_new’
- How to make a command case insensitive in discord.py
- (discord.py) Getting a list of all of the members in a specific voice channel
- AttributeError: ‘Client’ object has no attribute ‘send_message’ (Discord Bot)
- How can I send an embed via my Discord bot, w/python?
- “RuntimeWarning: coroutine ‘BotBase.load_extension’ was never awaited” after updating discord.py
- How to solve a “429: Too Many Requests” when running discord.py bot on repl.it?
- How do I make my discord.py bot use custom emoji?
- Python [Invalid syntax] with async def
- I want to let my Discord Bot send images/gifs
- How do i make a working slash command in discord.py
- Discord.py get user object from id/tag
- Certifacte verify failed: certificate has expired (_ssl.c:1108)
- Discord.py-rewrite wait_for() how do i use?
- Discord ‘on_member_join’ function not working
- How can I run an async function using the schedule library?
- Mass DM bot was working fine and now it wont send messages
- How to edit a message in discord.py
- Deleting User Messages in Discord.py
- How to resolve the following error in discord.py: “TypeError __init__() missing 1 required keyword-only argument: ‘intents'” [duplicate]