1intents = discord.Intents.default()
2intents.members = True
3
4bot = discord.Client(intents=intents)
1import discord
2
3intents = discord.Intents.default()
4intents.members = True
5
6from discord.ext import commands
7
8bot = commands.Bot(command_prefix='!', intents=intents)